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
![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
- DefaultBindingPropertyAttribute.cs
- GcHandle.cs
- DataBoundControlHelper.cs
- CircleHotSpot.cs
- DependencyPropertyChangedEventArgs.cs
- CodeArgumentReferenceExpression.cs
- ModelItemKeyValuePair.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ResourceBinder.cs
- JapaneseLunisolarCalendar.cs
- PropertySourceInfo.cs
- ValueProviderWrapper.cs
- DataGridViewAdvancedBorderStyle.cs
- Decoder.cs
- DynamicResourceExtension.cs
- _MultipleConnectAsync.cs
- OperationAbortedException.cs
- InputEventArgs.cs
- wgx_exports.cs
- BrowserCapabilitiesFactoryBase.cs
- WmlValidationSummaryAdapter.cs
- ConstantSlot.cs
- CallInfo.cs
- SoapInteropTypes.cs
- DocumentViewerBaseAutomationPeer.cs
- DiscoveryEndpointValidator.cs
- StrongName.cs
- CodeCastExpression.cs
- DataTable.cs
- CompModSwitches.cs
- OrderToken.cs
- DataGridViewTextBoxEditingControl.cs
- CurrentChangingEventArgs.cs
- RelationshipManager.cs
- XmlILTrace.cs
- JsonFormatGeneratorStatics.cs
- EntityDataSourceChangedEventArgs.cs
- DeviceContext2.cs
- mda.cs
- SqlCommandBuilder.cs
- XPathDocumentIterator.cs
- HandlerFactoryWrapper.cs
- ConsumerConnectionPointCollection.cs
- SliderAutomationPeer.cs
- Permission.cs
- JsonEncodingStreamWrapper.cs
- VirtualizingStackPanel.cs
- Main.cs
- RtfToken.cs
- Base64WriteStateInfo.cs
- XmlSchemaFacet.cs
- TextFormatter.cs
- ProcessHostMapPath.cs
- EventLogPermissionHolder.cs
- RectangleHotSpot.cs
- XmlWrappingReader.cs
- QilPatternVisitor.cs
- SerialReceived.cs
- AssertSection.cs
- XmlDocumentType.cs
- PerfCounters.cs
- OleDbFactory.cs
- FakeModelItemImpl.cs
- ViewGenerator.cs
- MessagePropertyDescriptionCollection.cs
- XslNumber.cs
- OnOperation.cs
- AnnotationResourceChangedEventArgs.cs
- WebPartPersonalization.cs
- TextTreeUndoUnit.cs
- ValueConversionAttribute.cs
- RegexInterpreter.cs
- DesignerDataTableBase.cs
- CacheHelper.cs
- WsdlInspector.cs
- XamlTreeBuilder.cs
- WorkflowMarkupSerializationProvider.cs
- _Connection.cs
- StylusTip.cs
- Application.cs
- HtmlShimManager.cs
- DataTableExtensions.cs
- TypeKeyValue.cs
- UniqueEventHelper.cs
- TextAutomationPeer.cs
- CodeIdentifier.cs
- ValidatedControlConverter.cs
- ApplicationHost.cs
- JsonXmlDataContract.cs
- SqlUtil.cs
- MessageLoggingElement.cs
- TypeHelpers.cs
- MailHeaderInfo.cs
- AppDomainGrammarProxy.cs
- XmlWrappingReader.cs
- ManipulationPivot.cs
- StrongNamePublicKeyBlob.cs
- HelpKeywordAttribute.cs
- TransformProviderWrapper.cs
- MatrixStack.cs