Code:
/ DotNET / DotNET / 8.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
- TextRangeProviderWrapper.cs
- EventBuilder.cs
- DataSourceControl.cs
- messageonlyhwndwrapper.cs
- FixedNode.cs
- ResourceReferenceExpressionConverter.cs
- KeyInterop.cs
- TextSegment.cs
- BinaryMethodMessage.cs
- HitTestResult.cs
- ColumnPropertiesGroup.cs
- ElapsedEventArgs.cs
- input.cs
- AssemblyFilter.cs
- Nodes.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BuildDependencySet.cs
- ServiceEndpointAssociationProvider.cs
- CreatingCookieEventArgs.cs
- DelegateBodyWriter.cs
- CurrentChangingEventArgs.cs
- EqualityComparer.cs
- DetailsViewPageEventArgs.cs
- RandomNumberGenerator.cs
- TimerElapsedEvenArgs.cs
- HostingPreferredMapPath.cs
- DispatcherExceptionEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- BindingSource.cs
- GestureRecognizer.cs
- QueryOperator.cs
- DESCryptoServiceProvider.cs
- ProviderUtil.cs
- SessionStateContainer.cs
- StringUtil.cs
- KeyPullup.cs
- TextEndOfSegment.cs
- SafeRightsManagementPubHandle.cs
- VSWCFServiceContractGenerator.cs
- KeyValueConfigurationElement.cs
- RouteParser.cs
- ObjectListShowCommandsEventArgs.cs
- WrapPanel.cs
- SelectionWordBreaker.cs
- HtmlTableCellCollection.cs
- ResourceProviderFactory.cs
- DateBoldEvent.cs
- CommandHelper.cs
- FormatterServicesNoSerializableCheck.cs
- ListViewGroupItemCollection.cs
- TreeNode.cs
- DbException.cs
- StringCollection.cs
- SafeProcessHandle.cs
- MenuItemStyleCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- TextStore.cs
- CorrelationHandle.cs
- DefaultDialogButtons.cs
- UnmanagedMemoryStream.cs
- XmlNodeComparer.cs
- CompiledIdentityConstraint.cs
- CollectionChangeEventArgs.cs
- controlskin.cs
- InternalConfigRoot.cs
- x509utils.cs
- TextControl.cs
- HTMLTextWriter.cs
- XmlSchemaRedefine.cs
- PathGeometry.cs
- CompressStream.cs
- DateTimeConverter2.cs
- ConvertTextFrag.cs
- XmlCustomFormatter.cs
- ContainerFilterService.cs
- SafeFileMappingHandle.cs
- SuppressIldasmAttribute.cs
- BindingExpressionBase.cs
- BindingList.cs
- CharEntityEncoderFallback.cs
- ObjectSecurityT.cs
- TimeSpanOrInfiniteConverter.cs
- SQLMoney.cs
- Latin1Encoding.cs
- DashStyle.cs
- RegistryDataKey.cs
- DataGridViewComboBoxCell.cs
- ListMarkerLine.cs
- AssemblyFilter.cs
- XmlSchemaSubstitutionGroup.cs
- BorderSidesEditor.cs
- ResXFileRef.cs
- QuaternionConverter.cs
- DecoderNLS.cs
- InternalResources.cs
- SafeSecurityHelper.cs
- WindowExtensionMethods.cs
- CompilerTypeWithParams.cs
- X509ChainElement.cs
- TimersDescriptionAttribute.cs