Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LookupBindingPropertiesAttribute.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OleAutBinder.cs
- Base64Decoder.cs
- XPathNodeInfoAtom.cs
- DbFunctionCommandTree.cs
- TypeGeneratedEventArgs.cs
- SecurityPolicySection.cs
- CodeTypeReferenceExpression.cs
- GregorianCalendarHelper.cs
- ContractNamespaceAttribute.cs
- TextFormatterHost.cs
- ScriptingWebServicesSectionGroup.cs
- SslStream.cs
- AssociationEndMember.cs
- EntityDesignerDataSourceView.cs
- CriticalExceptions.cs
- BaseProcessProtocolHandler.cs
- SystemEvents.cs
- ProtocolsConfigurationHandler.cs
- RegisteredDisposeScript.cs
- SrgsDocumentParser.cs
- OracleCommandBuilder.cs
- FileResponseElement.cs
- ResourcePool.cs
- DataColumnSelectionConverter.cs
- MapPathBasedVirtualPathProvider.cs
- XmlResolver.cs
- StorageModelBuildProvider.cs
- HealthMonitoringSection.cs
- SmiMetaData.cs
- InputLanguageEventArgs.cs
- BinaryObjectInfo.cs
- keycontainerpermission.cs
- PeerCustomResolverSettings.cs
- WindowsAuthenticationModule.cs
- _SslState.cs
- QilBinary.cs
- ConditionalAttribute.cs
- Condition.cs
- ThreadSafeList.cs
- mediaeventshelper.cs
- XPathAncestorQuery.cs
- SettingsPropertyWrongTypeException.cs
- OdbcError.cs
- DataControlFieldsEditor.cs
- PageHandlerFactory.cs
- HttpApplication.cs
- SharedPerformanceCounter.cs
- SaveFileDialog.cs
- mediaclock.cs
- SiteMapNodeItem.cs
- SortedList.cs
- XmlSchemaValidationException.cs
- PathGradientBrush.cs
- WebPartEditVerb.cs
- RoleManagerModule.cs
- XmlMembersMapping.cs
- ValidatingReaderNodeData.cs
- _OverlappedAsyncResult.cs
- BufferedMessageData.cs
- ItemPager.cs
- MimeTypeAttribute.cs
- ProxyElement.cs
- bindurihelper.cs
- SpotLight.cs
- MultiPropertyDescriptorGridEntry.cs
- IconConverter.cs
- Bitmap.cs
- DoubleCollectionConverter.cs
- SynchronizedInputProviderWrapper.cs
- ContentIterators.cs
- DataServiceQueryContinuation.cs
- CodeParameterDeclarationExpression.cs
- WsdlBuildProvider.cs
- _emptywebproxy.cs
- InternalSafeNativeMethods.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ContextMenuAutomationPeer.cs
- oledbmetadatacolumnnames.cs
- WindowsSolidBrush.cs
- ColorDialog.cs
- SemanticResolver.cs
- WebEncodingValidator.cs
- DynamicMetaObject.cs
- DbConnectionHelper.cs
- CheckedListBox.cs
- updateconfighost.cs
- Wizard.cs
- CodeDOMProvider.cs
- GrammarBuilderWildcard.cs
- Int16.cs
- DisplayToken.cs
- ModelUtilities.cs
- ImageSource.cs
- SQLInt32.cs
- ConfigurationConverterBase.cs
- PeerTransportElement.cs
- DataBoundControlHelper.cs
- StartUpEventArgs.cs
- SqlCacheDependency.cs
- DesignerToolStripControlHost.cs