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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Geometry3D.cs
- RegionInfo.cs
- DropShadowEffect.cs
- DataPagerFieldItem.cs
- TextMetrics.cs
- PlainXmlWriter.cs
- SettingsProperty.cs
- DiscoveryMessageSequenceGenerator.cs
- SafeCoTaskMem.cs
- SchemaEntity.cs
- DataGridViewColumnCollection.cs
- PrimitiveType.cs
- InputGestureCollection.cs
- ValidatingReaderNodeData.cs
- SqlConnectionString.cs
- UIElementCollection.cs
- WebPartCollection.cs
- CodeAttributeDeclaration.cs
- ColumnBinding.cs
- UnsafeNativeMethods.cs
- JulianCalendar.cs
- FormViewDesigner.cs
- Mappings.cs
- AvtEvent.cs
- RemotingConfigParser.cs
- CanonicalFontFamilyReference.cs
- FacetChecker.cs
- ReceiveContent.cs
- sitestring.cs
- XhtmlBasicPhoneCallAdapter.cs
- DataColumnPropertyDescriptor.cs
- GrammarBuilderWildcard.cs
- ActiveXContainer.cs
- ToolstripProfessionalRenderer.cs
- AccessDataSourceView.cs
- RelatedEnd.cs
- DetailsViewRowCollection.cs
- DTCTransactionManager.cs
- ToolStripProgressBar.cs
- DisposableCollectionWrapper.cs
- PathFigure.cs
- WebBrowserNavigatedEventHandler.cs
- DataGridViewCellFormattingEventArgs.cs
- BufferBuilder.cs
- DynamicQueryableWrapper.cs
- DataGridViewButtonCell.cs
- XmlDataSourceView.cs
- SmtpFailedRecipientException.cs
- ForEach.cs
- PropertyEmitterBase.cs
- AuthenticationManager.cs
- ResourcePool.cs
- SemanticValue.cs
- XmlSchemaComplexContent.cs
- UpdateCompiler.cs
- EdmItemCollection.cs
- RoutedCommand.cs
- DesignerView.cs
- EntityTypeEmitter.cs
- Clause.cs
- PresentationSource.cs
- Select.cs
- ModuleConfigurationInfo.cs
- EdmProperty.cs
- AttachInfo.cs
- FieldDescriptor.cs
- QilGenerator.cs
- UpdateExpressionVisitor.cs
- FormsAuthenticationUser.cs
- SemanticTag.cs
- SvcMapFileSerializer.cs
- TypeListConverter.cs
- _ConnectStream.cs
- RIPEMD160.cs
- RawStylusInputCustomDataList.cs
- PrintingPermission.cs
- DataGridHyperlinkColumn.cs
- ManualResetEvent.cs
- translator.cs
- ProfileManager.cs
- LoaderAllocator.cs
- ManipulationCompletedEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- TableRowGroup.cs
- UnionExpr.cs
- TextFragmentEngine.cs
- TransformerTypeCollection.cs
- MemberAccessException.cs
- InternalSafeNativeMethods.cs
- SystemMulticastIPAddressInformation.cs
- WpfSharedBamlSchemaContext.cs
- AccessDataSourceView.cs
- ThaiBuddhistCalendar.cs
- MatrixConverter.cs
- RegexMatchCollection.cs
- AjaxFrameworkAssemblyAttribute.cs
- TextServicesCompartmentContext.cs
- XsltOutput.cs
- FormsAuthenticationUser.cs
- SmtpSpecifiedPickupDirectoryElement.cs