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
- GenerateTemporaryAssemblyTask.cs
- NotImplementedException.cs
- ErrorsHelper.cs
- XmlWrappingWriter.cs
- ModuleElement.cs
- RefreshEventArgs.cs
- EntryPointNotFoundException.cs
- XmlEncodedRawTextWriter.cs
- HwndKeyboardInputProvider.cs
- SingleStorage.cs
- StringDictionary.cs
- CryptoHandle.cs
- KeyGesture.cs
- FunctionImportMapping.cs
- DataGridViewRowHeaderCell.cs
- TickBar.cs
- ImmutableAssemblyCacheEntry.cs
- EventBuilder.cs
- PasswordTextContainer.cs
- activationcontext.cs
- MDIControlStrip.cs
- ObjectViewListener.cs
- XmlNodeComparer.cs
- WebPartEventArgs.cs
- RequestBringIntoViewEventArgs.cs
- FocusManager.cs
- TextElementEditingBehaviorAttribute.cs
- COAUTHIDENTITY.cs
- XmlElementAttribute.cs
- Buffer.cs
- RepeaterItemEventArgs.cs
- ConnectivityStatus.cs
- FixedSOMPage.cs
- Int64Storage.cs
- TTSEvent.cs
- Font.cs
- EventData.cs
- TypeConverterMarkupExtension.cs
- TransformPattern.cs
- XmlnsCache.cs
- InheritanceContextChangedEventManager.cs
- EncryptedPackageFilter.cs
- SqlInfoMessageEvent.cs
- SessionStateModule.cs
- SqlDataRecord.cs
- SimpleHandlerBuildProvider.cs
- PointLightBase.cs
- HttpFileCollection.cs
- XmlNodeList.cs
- TileBrush.cs
- ChtmlTextWriter.cs
- shaper.cs
- SqlStatistics.cs
- FixedStringLookup.cs
- mongolianshape.cs
- RC2.cs
- RangeExpression.cs
- SmiEventSink.cs
- ExceptionHelpers.cs
- CultureTable.cs
- SystemFonts.cs
- CommandConverter.cs
- InitializationEventAttribute.cs
- HijriCalendar.cs
- AdapterUtil.cs
- ComponentChangingEvent.cs
- SerializationEventsCache.cs
- SafeFileMapViewHandle.cs
- NameValuePermission.cs
- FacetDescriptionElement.cs
- AsymmetricSignatureDeformatter.cs
- InstanceData.cs
- QilGenerator.cs
- TextFormatter.cs
- BevelBitmapEffect.cs
- LocalTransaction.cs
- StateMachine.cs
- StrokeDescriptor.cs
- ManagedIStream.cs
- ToolStripItemRenderEventArgs.cs
- DBNull.cs
- CfgParser.cs
- HashFinalRequest.cs
- CodeDomConfigurationHandler.cs
- Single.cs
- ParallelTimeline.cs
- Keywords.cs
- MailSettingsSection.cs
- GlobalizationAssembly.cs
- KeyValuePair.cs
- WindowCollection.cs
- HandleCollector.cs
- ReachSerializationCacheItems.cs
- ExpressionLexer.cs
- EventData.cs
- SqlCacheDependency.cs
- SocketElement.cs
- RegexNode.cs
- ToggleButton.cs
- ProfileSettingsCollection.cs