Code:
/ 4.0 / 4.0 / 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. /// // 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
- ImportContext.cs
- Misc.cs
- SystemColors.cs
- ThreadStaticAttribute.cs
- ProcessModuleCollection.cs
- ToolboxItemAttribute.cs
- CodeAttributeDeclaration.cs
- RowVisual.cs
- QilInvokeLateBound.cs
- ZipIOModeEnforcingStream.cs
- TabControlDesigner.cs
- RemotingAttributes.cs
- MimeWriter.cs
- ToolStripItem.cs
- AtomicFile.cs
- StringDictionaryWithComparer.cs
- CheckBoxList.cs
- PngBitmapEncoder.cs
- ELinqQueryState.cs
- TdsValueSetter.cs
- OdbcEnvironmentHandle.cs
- MultiBindingExpression.cs
- AttributeParameterInfo.cs
- CheckBoxRenderer.cs
- CodeNamespaceImportCollection.cs
- ClientTarget.cs
- InputLanguageEventArgs.cs
- NativeCppClassAttribute.cs
- MatchingStyle.cs
- CombinedGeometry.cs
- RIPEMD160.cs
- XmlCharacterData.cs
- SQLSingleStorage.cs
- DynamicActivity.cs
- AnnotationAdorner.cs
- CompiledXpathExpr.cs
- SqlDataSourceStatusEventArgs.cs
- InputBuffer.cs
- PropertyMetadata.cs
- MsmqOutputChannel.cs
- TraceUtility.cs
- FlowDocumentView.cs
- WebSysDefaultValueAttribute.cs
- ObjectStateFormatter.cs
- ForEachDesigner.xaml.cs
- XmlEncodedRawTextWriter.cs
- WebBrowserContainer.cs
- login.cs
- Encoder.cs
- ToolboxComponentsCreatedEventArgs.cs
- TextAction.cs
- NavigationPropertySingletonExpression.cs
- ExclusiveTcpListener.cs
- ChtmlTextWriter.cs
- LayoutInformation.cs
- MemberExpression.cs
- COM2PropertyDescriptor.cs
- SymbolTable.cs
- ReadWriteObjectLock.cs
- TextAction.cs
- PropertyStore.cs
- WorkflowServiceBehavior.cs
- Pen.cs
- ByteStreamGeometryContext.cs
- Int32Converter.cs
- HtmlTitle.cs
- DataKey.cs
- SqlInfoMessageEvent.cs
- HttpCachePolicyElement.cs
- DetailsViewPageEventArgs.cs
- Blend.cs
- VectorCollection.cs
- TextTreeTextBlock.cs
- SHA384Cng.cs
- MenuScrollingVisibilityConverter.cs
- ServiceNotStartedException.cs
- DataGridViewElement.cs
- ValidatingCollection.cs
- SQLInt64Storage.cs
- EdmMember.cs
- MissingSatelliteAssemblyException.cs
- EventTrigger.cs
- FormView.cs
- DoubleStorage.cs
- SharedPersonalizationStateInfo.cs
- HttpServerUtilityBase.cs
- RotateTransform.cs
- _HeaderInfoTable.cs
- ComPlusTypeValidator.cs
- Evaluator.cs
- xmlfixedPageInfo.cs
- EventWaitHandleSecurity.cs
- BackEase.cs
- NetMsmqSecurity.cs
- DesignerRegionMouseEventArgs.cs
- WSFederationHttpSecurityElement.cs
- TokenFactoryCredential.cs
- TextDecorationCollection.cs
- UserControlFileEditor.cs
- ThreadStartException.cs