Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataColumnSelectionConverter.cs
- RegionIterator.cs
- GregorianCalendar.cs
- Model3DGroup.cs
- PolicyStatement.cs
- DnsEndpointIdentity.cs
- EventMappingSettingsCollection.cs
- RestHandler.cs
- ConvertEvent.cs
- BindingOperations.cs
- SqlServices.cs
- OleDbException.cs
- DynamicActivityTypeDescriptor.cs
- XmlAnyElementAttributes.cs
- JournalEntryStack.cs
- EditingCoordinator.cs
- StoryFragments.cs
- XmlSchemaAttribute.cs
- KeySpline.cs
- ObjectItemAttributeAssemblyLoader.cs
- DragDeltaEventArgs.cs
- IntegerValidatorAttribute.cs
- Config.cs
- LifetimeManager.cs
- CqlParser.cs
- ServerType.cs
- ObjectContext.cs
- ModelTreeManager.cs
- CodeDirectoryCompiler.cs
- AuthenticationSection.cs
- InvalidOperationException.cs
- HttpListenerContext.cs
- IDictionary.cs
- NameValuePermission.cs
- ContentIterators.cs
- EventDescriptorCollection.cs
- AppDomainShutdownMonitor.cs
- BaseCodePageEncoding.cs
- PropertyDescriptors.cs
- DragCompletedEventArgs.cs
- Evidence.cs
- SingleKeyFrameCollection.cs
- SrgsElementFactory.cs
- TimeSpanValidatorAttribute.cs
- AuthenticationModulesSection.cs
- RegexMatchCollection.cs
- StringInfo.cs
- EntryWrittenEventArgs.cs
- Int32Collection.cs
- DocumentGridPage.cs
- Brush.cs
- AnnotationObservableCollection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DirectoryObjectSecurity.cs
- MissingManifestResourceException.cs
- ConstraintConverter.cs
- EntryPointNotFoundException.cs
- DescendentsWalker.cs
- WebBrowserNavigatingEventHandler.cs
- HatchBrush.cs
- EntityDataSourceWrapperCollection.cs
- MergablePropertyAttribute.cs
- SqlConnectionPoolProviderInfo.cs
- HandlerFactoryCache.cs
- ListBindingHelper.cs
- FormViewDeletedEventArgs.cs
- WsatServiceAddress.cs
- SafeThreadHandle.cs
- NTAccount.cs
- Process.cs
- WebRequest.cs
- _UriTypeConverter.cs
- CngAlgorithm.cs
- MarkupCompiler.cs
- ResolveCriteria11.cs
- latinshape.cs
- GradientPanel.cs
- IdnElement.cs
- X509CertificateCollection.cs
- NoPersistHandle.cs
- GACIdentityPermission.cs
- AnnouncementClient.cs
- EventSetter.cs
- SqlDataSource.cs
- HttpConfigurationContext.cs
- WebBaseEventKeyComparer.cs
- XmlnsDefinitionAttribute.cs
- PointCollectionValueSerializer.cs
- EditableTreeList.cs
- QueueTransferProtocol.cs
- ReversePositionQuery.cs
- MetadataArtifactLoaderResource.cs
- SQLSingle.cs
- DeviceContexts.cs
- DPTypeDescriptorContext.cs
- AuthenticationException.cs
- WizardPanelChangingEventArgs.cs
- Math.cs
- PageAsyncTaskManager.cs
- CodeDelegateCreateExpression.cs