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
- CodeSubDirectoriesCollection.cs
- EntityDataSourceState.cs
- XmlSchemas.cs
- ListParagraph.cs
- NodeLabelEditEvent.cs
- GeneralTransform3D.cs
- FormatConvertedBitmap.cs
- NetworkInformationException.cs
- DecimalFormatter.cs
- AttributeProviderAttribute.cs
- AppDomainProtocolHandler.cs
- DataDesignUtil.cs
- AppDomainFactory.cs
- XmlValidatingReader.cs
- HtmlControl.cs
- AssemblyBuilder.cs
- DesignOnlyAttribute.cs
- NewItemsContextMenuStrip.cs
- Renderer.cs
- OleDbRowUpdatingEvent.cs
- EFTableProvider.cs
- BaseParaClient.cs
- GPRECT.cs
- FileInfo.cs
- VirtualizedCellInfoCollection.cs
- ViewLoader.cs
- DesignerDataConnection.cs
- ResourceLoader.cs
- ArrayList.cs
- HttpClientCertificate.cs
- TreeNodeStyleCollection.cs
- StylusButton.cs
- RtfControls.cs
- compensatingcollection.cs
- connectionpool.cs
- SQLInt32.cs
- InlineUIContainer.cs
- NotImplementedException.cs
- Line.cs
- HMACSHA256.cs
- NativeActivityFaultContext.cs
- ListControl.cs
- ProjectionCamera.cs
- WebPartConnection.cs
- MonthChangedEventArgs.cs
- odbcmetadatafactory.cs
- ParallelActivityDesigner.cs
- UTF32Encoding.cs
- BinHexDecoder.cs
- WebResourceAttribute.cs
- ClosableStream.cs
- TypeConstant.cs
- SqlDependency.cs
- TextModifierScope.cs
- DeploymentSection.cs
- AuthenticationModuleElement.cs
- EntityDataSourceDesigner.cs
- ElementProxy.cs
- EntryWrittenEventArgs.cs
- PrimitiveType.cs
- PropertyBuilder.cs
- TemplateEditingVerb.cs
- ToolboxItemAttribute.cs
- Unit.cs
- RangeValuePattern.cs
- TogglePattern.cs
- VirtualDirectoryMappingCollection.cs
- RemotingSurrogateSelector.cs
- VectorCollectionConverter.cs
- assemblycache.cs
- MarkerProperties.cs
- MessageEncoderFactory.cs
- lengthconverter.cs
- RawUIStateInputReport.cs
- ConnectionInterfaceCollection.cs
- ManagedWndProcTracker.cs
- TraceSource.cs
- RangeValuePatternIdentifiers.cs
- EmbeddedMailObjectCollectionEditor.cs
- RenderDataDrawingContext.cs
- streamingZipPartStream.cs
- BooleanStorage.cs
- SqlDataSource.cs
- Timer.cs
- Executor.cs
- FlowDocumentFormatter.cs
- ListSourceHelper.cs
- TextRangeAdaptor.cs
- SecurityCapabilities.cs
- JsonMessageEncoderFactory.cs
- WindowsFormsLinkLabel.cs
- ExtendedProtectionPolicy.cs
- BooleanProjectedSlot.cs
- SessionStateModule.cs
- CellParaClient.cs
- Socket.cs
- ConnectionProviderAttribute.cs
- MsmqIntegrationOutputChannel.cs
- EventListenerClientSide.cs
- FormViewRow.cs