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
- Screen.cs
- TableAdapterManagerHelper.cs
- Cursors.cs
- ForeignKeyFactory.cs
- ClientUtils.cs
- TrackBar.cs
- XmlCountingReader.cs
- Int32AnimationUsingKeyFrames.cs
- XmlSchemaAnnotated.cs
- FormViewModeEventArgs.cs
- CheckableControlBaseAdapter.cs
- TerminatorSinks.cs
- Debug.cs
- odbcmetadatacollectionnames.cs
- ByteStreamMessageEncoder.cs
- Latin1Encoding.cs
- SmtpException.cs
- SmtpLoginAuthenticationModule.cs
- DesignObjectWrapper.cs
- UserPersonalizationStateInfo.cs
- assertwrapper.cs
- QueryCacheManager.cs
- MultiPageTextView.cs
- FileDialogCustomPlacesCollection.cs
- ProfileInfo.cs
- WindowInteractionStateTracker.cs
- KerberosSecurityTokenAuthenticator.cs
- TrackingWorkflowEventArgs.cs
- _SingleItemRequestCache.cs
- DataSourceNameHandler.cs
- RelatedCurrencyManager.cs
- TextBoxLine.cs
- ServiceRoute.cs
- InputLanguageSource.cs
- LogPolicy.cs
- WebPartEditorCancelVerb.cs
- SystemIPv6InterfaceProperties.cs
- ClockGroup.cs
- CopyNamespacesAction.cs
- InvalidComObjectException.cs
- ClientRequest.cs
- XmlReaderDelegator.cs
- SchemaDeclBase.cs
- SqlInternalConnectionSmi.cs
- FormViewCommandEventArgs.cs
- TransformerInfo.cs
- ContextStack.cs
- securestring.cs
- PreviewPrintController.cs
- CollaborationHelperFunctions.cs
- GreenMethods.cs
- Panel.cs
- CancelEventArgs.cs
- Ipv6Element.cs
- AffineTransform3D.cs
- PackageProperties.cs
- TargetInvocationException.cs
- BinHexEncoder.cs
- DataSourceHelper.cs
- UrlAuthorizationModule.cs
- DbProviderServices.cs
- ToolStripRenderEventArgs.cs
- _BufferOffsetSize.cs
- ArcSegment.cs
- JulianCalendar.cs
- UICuesEvent.cs
- RowToFieldTransformer.cs
- StructuredProperty.cs
- MultiPageTextView.cs
- EditorPartCollection.cs
- StylusPointPropertyUnit.cs
- LinkedResource.cs
- XmlEventCache.cs
- TreeView.cs
- AuthenticateEventArgs.cs
- Overlapped.cs
- SQLDateTimeStorage.cs
- Site.cs
- XmlRawWriter.cs
- WebHttpSecurityModeHelper.cs
- QueryContinueDragEvent.cs
- TextServicesCompartmentContext.cs
- SizeKeyFrameCollection.cs
- FileAuthorizationModule.cs
- securitycriticaldataformultiplegetandset.cs
- SqlBulkCopyColumnMappingCollection.cs
- Process.cs
- ToolStripPanelRow.cs
- PropertyEntry.cs
- LinearGradientBrush.cs
- AssociationType.cs
- MatrixCamera.cs
- Single.cs
- AppSettingsReader.cs
- DatagridviewDisplayedBandsData.cs
- PropertyCondition.cs
- ServiceManager.cs
- ResourceDictionaryCollection.cs
- InkCanvasInnerCanvas.cs
- HtmlTextArea.cs