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
- PassportAuthenticationModule.cs
- _DomainName.cs
- ExponentialEase.cs
- GeometryModel3D.cs
- Menu.cs
- PropertyHelper.cs
- SByteStorage.cs
- CatalogPartChrome.cs
- EventDescriptor.cs
- SizeConverter.cs
- Light.cs
- SqlBinder.cs
- SemanticBasicElement.cs
- BindingMAnagerBase.cs
- AddingNewEventArgs.cs
- XsdDataContractExporter.cs
- SendSecurityHeader.cs
- FlowDocument.cs
- __FastResourceComparer.cs
- XmlValidatingReader.cs
- WpfXamlMember.cs
- MobileControl.cs
- TextEditorCharacters.cs
- BitmapEffectCollection.cs
- SafeTimerHandle.cs
- PackageRelationship.cs
- BaseDataListPage.cs
- WebPartDisplayModeEventArgs.cs
- CompositionCommandSet.cs
- DBConcurrencyException.cs
- Socket.cs
- Margins.cs
- FirstMatchCodeGroup.cs
- AccessibilityApplicationManager.cs
- RsaSecurityKey.cs
- RegexBoyerMoore.cs
- DrawingCollection.cs
- CreatingCookieEventArgs.cs
- CustomError.cs
- VisemeEventArgs.cs
- ByteStreamGeometryContext.cs
- EtwTrace.cs
- CultureTableRecord.cs
- SafeCryptoHandles.cs
- HttpEncoderUtility.cs
- TraceContext.cs
- PropertyInfo.cs
- EnumValAlphaComparer.cs
- GetPageNumberCompletedEventArgs.cs
- PeerNameRegistration.cs
- Scheduler.cs
- ListDictionaryInternal.cs
- _LoggingObject.cs
- BasicExpandProvider.cs
- BufferAllocator.cs
- ClientBuildManagerCallback.cs
- ToolStripDropDownItem.cs
- TreeView.cs
- ConfigurationStrings.cs
- BitmapImage.cs
- HtmlInputCheckBox.cs
- OdbcDataAdapter.cs
- PropertyReferenceExtension.cs
- SrgsRulesCollection.cs
- SignatureToken.cs
- CounterCreationData.cs
- CqlLexer.cs
- TextAutomationPeer.cs
- HttpPostServerProtocol.cs
- FamilyMap.cs
- TemplateManager.cs
- DataControlReferenceCollection.cs
- Point3DCollectionValueSerializer.cs
- CapabilitiesSection.cs
- RemoveStoryboard.cs
- ListBox.cs
- FontEmbeddingManager.cs
- SapiRecoInterop.cs
- HierarchicalDataSourceControl.cs
- HelpPage.cs
- NullReferenceException.cs
- RootProfilePropertySettingsCollection.cs
- MarkupCompiler.cs
- TemplateControlCodeDomTreeGenerator.cs
- DocumentPageHost.cs
- TransactionFormatter.cs
- DirectoryRootQuery.cs
- XmlSchemaDocumentation.cs
- TextTreeRootNode.cs
- FrameworkPropertyMetadata.cs
- SecurityException.cs
- FormatConvertedBitmap.cs
- HtmlWindow.cs
- BindingManagerDataErrorEventArgs.cs
- EventManager.cs
- Double.cs
- DataControlLinkButton.cs
- ToolStripSplitButton.cs
- RelationshipWrapper.cs
- TextServicesPropertyRanges.cs