Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- Pen.cs
- DoubleKeyFrameCollection.cs
- NodeLabelEditEvent.cs
- ThicknessAnimationBase.cs
- UInt32.cs
- Type.cs
- ToolTip.cs
- LinqToSqlWrapper.cs
- TextServicesManager.cs
- StorageRoot.cs
- RowVisual.cs
- ObjectKeyFrameCollection.cs
- AppSettingsSection.cs
- Span.cs
- ChameleonKey.cs
- TraceHandler.cs
- RealProxy.cs
- BrowserCapabilitiesFactory35.cs
- GeometryGroup.cs
- TreeNodeBinding.cs
- BadImageFormatException.cs
- TextureBrush.cs
- WmlTextBoxAdapter.cs
- SelectionItemPattern.cs
- FileDialog_Vista_Interop.cs
- TemplateKeyConverter.cs
- DataViewManager.cs
- TypedTableGenerator.cs
- BufferBuilder.cs
- TagPrefixCollection.cs
- XamlReaderHelper.cs
- ZipPackage.cs
- Dictionary.cs
- ServicePointManagerElement.cs
- PeerMaintainer.cs
- RuleEngine.cs
- ObjectParameter.cs
- EventData.cs
- GridViewRowCollection.cs
- ComboBox.cs
- CodeExpressionStatement.cs
- GifBitmapDecoder.cs
- MembershipSection.cs
- HuffCodec.cs
- ExceptionUtility.cs
- ApplicationInterop.cs
- HitTestResult.cs
- XPathArrayIterator.cs
- CallContext.cs
- MulticastIPAddressInformationCollection.cs
- SqlInternalConnectionTds.cs
- PageFunction.cs
- RenderingBiasValidation.cs
- UseLicense.cs
- PropertyKey.cs
- RecognizerBase.cs
- ParallelLoopState.cs
- UserControlBuildProvider.cs
- DataException.cs
- ClientViaElement.cs
- DynamicMetaObject.cs
- SymbolMethod.cs
- FontStretchConverter.cs
- EmissiveMaterial.cs
- DataTableTypeConverter.cs
- SmtpAuthenticationManager.cs
- PathTooLongException.cs
- WeakHashtable.cs
- SmiXetterAccessMap.cs
- validationstate.cs
- NamedPermissionSet.cs
- ModelPerspective.cs
- InternalConfigSettingsFactory.cs
- Validator.cs
- LinqDataSourceValidationException.cs
- GCHandleCookieTable.cs
- ISSmlParser.cs
- KeyedHashAlgorithm.cs
- UIElementHelper.cs
- SqlDuplicator.cs
- AttachedPropertyMethodSelector.cs
- RegexCapture.cs
- MessageHeaderDescription.cs
- ManagementInstaller.cs
- ExpandedProjectionNode.cs
- GPRECT.cs
- WebPartTransformerAttribute.cs
- MessageBox.cs
- SerializationStore.cs
- AppDomainUnloadedException.cs
- XmlQueryType.cs
- FixedSOMGroup.cs
- HttpListenerContext.cs
- XmlWhitespace.cs
- TextServicesCompartmentEventSink.cs
- unsafenativemethodstextservices.cs
- Span.cs
- GlyphRunDrawing.cs
- XmlIgnoreAttribute.cs
- Encoder.cs