Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / LookupBindingPropertiesAttribute.cs / 1 / LookupBindingPropertiesAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class LookupBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string displayMember; private readonly string valueMember; private readonly string lookupMember; ///Specifies the data source and data member properties for a component. ////// public LookupBindingPropertiesAttribute() { this.dataSource = null; this.displayMember = null; this.valueMember = null; this.lookupMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public LookupBindingPropertiesAttribute(string dataSource, string displayMember, string valueMember, string lookupMember) { this.dataSource = dataSource; this.displayMember = displayMember; this.valueMember = valueMember; this.lookupMember = lookupMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DisplayMember { get { return displayMember; } } ////// Gets the name of the display member property for the component this attribute is /// bound to. /// ////// public string ValueMember { get { return valueMember; } } ////// Gets the name of the value member property for the component this attribute is /// bound to. /// ////// public string LookupMember { get { return lookupMember; } } ////// Gets the name of the member property for the component this attribute is /// bound to. /// ////// public static readonly LookupBindingPropertiesAttribute Default = new LookupBindingPropertiesAttribute(); public override bool Equals(object obj) { LookupBindingPropertiesAttribute other = obj as LookupBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.displayMember == displayMember && other.valueMember == valueMember && other.lookupMember == lookupMember; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class LookupBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string displayMember; private readonly string valueMember; private readonly string lookupMember; ///Specifies the data source and data member properties for a component. ////// public LookupBindingPropertiesAttribute() { this.dataSource = null; this.displayMember = null; this.valueMember = null; this.lookupMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public LookupBindingPropertiesAttribute(string dataSource, string displayMember, string valueMember, string lookupMember) { this.dataSource = dataSource; this.displayMember = displayMember; this.valueMember = valueMember; this.lookupMember = lookupMember; } ////// Initializes a new instance of /// the ///class. /// /// public string DataSource { get { return dataSource; } } ////// Gets the name of the data source property for the component this attribute is /// bound to. /// ////// public string DisplayMember { get { return displayMember; } } ////// Gets the name of the display member property for the component this attribute is /// bound to. /// ////// public string ValueMember { get { return valueMember; } } ////// Gets the name of the value member property for the component this attribute is /// bound to. /// ////// public string LookupMember { get { return lookupMember; } } ////// Gets the name of the member property for the component this attribute is /// bound to. /// ////// public static readonly LookupBindingPropertiesAttribute Default = new LookupBindingPropertiesAttribute(); public override bool Equals(object obj) { LookupBindingPropertiesAttribute other = obj as LookupBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.displayMember == displayMember && other.valueMember == valueMember && other.lookupMember == lookupMember; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Specifies the default value for the ///, which is . This /// field is read-only. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlTypeMapper.cs
- XmlSchemaIdentityConstraint.cs
- WindowsSlider.cs
- ManagedFilter.cs
- MulticastDelegate.cs
- TypeConverter.cs
- Registry.cs
- Int32Converter.cs
- ColumnPropertiesGroup.cs
- BitmapPalette.cs
- WindowsGraphicsWrapper.cs
- Transaction.cs
- IOException.cs
- StaticFileHandler.cs
- DataGridViewCellStyleBuilderDialog.cs
- DeferredBinaryDeserializerExtension.cs
- Util.cs
- FamilyMap.cs
- ProtocolException.cs
- DomainUpDown.cs
- EventSourceCreationData.cs
- MDIWindowDialog.cs
- EndpointNameMessageFilter.cs
- DataControlFieldCell.cs
- _SecureChannel.cs
- XpsDocumentEvent.cs
- LinkArea.cs
- DataServiceContext.cs
- DataGridViewCellCancelEventArgs.cs
- IntegerValidatorAttribute.cs
- CubicEase.cs
- HttpCookiesSection.cs
- ResourceExpressionBuilder.cs
- XmlUtil.cs
- RC2CryptoServiceProvider.cs
- ComboBoxRenderer.cs
- CalendarSelectionChangedEventArgs.cs
- EntityClientCacheEntry.cs
- FormsIdentity.cs
- WSSecureConversationFeb2005.cs
- XmlConverter.cs
- XsdValidatingReader.cs
- TypeConverterAttribute.cs
- MembershipSection.cs
- ResXResourceSet.cs
- TextTreeExtractElementUndoUnit.cs
- CounterSample.cs
- DataGridRow.cs
- HttpRuntime.cs
- RTLAwareMessageBox.cs
- OfTypeExpression.cs
- WSTrustFeb2005.cs
- GridViewColumn.cs
- SystemIPAddressInformation.cs
- PrinterResolution.cs
- Matrix.cs
- NotImplementedException.cs
- Track.cs
- ButtonPopupAdapter.cs
- PageEventArgs.cs
- TableItemProviderWrapper.cs
- StoryFragments.cs
- ControlsConfig.cs
- GridViewCancelEditEventArgs.cs
- PartialList.cs
- StateMachine.cs
- webproxy.cs
- SchemaImporter.cs
- StringUtil.cs
- MessageQueueTransaction.cs
- SqlCacheDependency.cs
- COM2EnumConverter.cs
- SizeChangedInfo.cs
- unitconverter.cs
- ReachSerializationCacheItems.cs
- RegexParser.cs
- ExpressionConverter.cs
- LinkedList.cs
- TimeSpanOrInfiniteConverter.cs
- FormsAuthenticationCredentials.cs
- CodeTypeConstructor.cs
- DiscardableAttribute.cs
- SQLGuid.cs
- TrackingMemoryStream.cs
- QueryOutputWriter.cs
- RoleServiceManager.cs
- SiteMembershipCondition.cs
- ToolStripGrip.cs
- lengthconverter.cs
- HostedHttpContext.cs
- ResourceContainer.cs
- Listbox.cs
- DebugView.cs
- TextTreeDeleteContentUndoUnit.cs
- MdImport.cs
- Run.cs
- VisualBasicSettings.cs
- CheckBoxAutomationPeer.cs
- ApplicationServiceHelper.cs
- FormatterConverter.cs