Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Substitution.cs
- SHA512.cs
- RequestStatusBarUpdateEventArgs.cs
- HostingEnvironmentWrapper.cs
- WhitespaceRule.cs
- Executor.cs
- UnsafeNativeMethods.cs
- ViewCellRelation.cs
- DbConnectionClosed.cs
- TerminateDesigner.cs
- BooleanConverter.cs
- EntityType.cs
- MachinePropertyVariants.cs
- BitmapCodecInfo.cs
- CheckBoxBaseAdapter.cs
- EventLog.cs
- Int32AnimationUsingKeyFrames.cs
- SerializationObjectManager.cs
- Int32RectConverter.cs
- InternalSafeNativeMethods.cs
- ActiveDocumentEvent.cs
- DbBuffer.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- BuilderInfo.cs
- CollectionBase.cs
- ValidatorUtils.cs
- EntityDataSource.cs
- ProfilePropertySettings.cs
- OutOfProcStateClientManager.cs
- OpenFileDialog.cs
- MethodBuilder.cs
- DiscoveryMessageProperty.cs
- WindowsScrollBar.cs
- DataGridViewTextBoxCell.cs
- SupportingTokenSecurityTokenResolver.cs
- SqlDataSourceCache.cs
- EventLogInformation.cs
- DBAsyncResult.cs
- EventWaitHandle.cs
- TrackingParameters.cs
- FormattedText.cs
- Typography.cs
- WindowsGraphicsWrapper.cs
- BatchParser.cs
- BaseTemplateBuildProvider.cs
- TextBoxAutomationPeer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DiscardableAttribute.cs
- InvokeGenerator.cs
- SignedXml.cs
- WsdlBuildProvider.cs
- odbcmetadatafactory.cs
- PathData.cs
- PriorityItem.cs
- ListViewInsertEventArgs.cs
- StrongName.cs
- Crc32.cs
- DependencyPropertyDescriptor.cs
- Group.cs
- IgnoreFileBuildProvider.cs
- InkPresenterAutomationPeer.cs
- CssClassPropertyAttribute.cs
- ByteStreamGeometryContext.cs
- ComponentManagerBroker.cs
- DrawingImage.cs
- NativeMethods.cs
- _ContextAwareResult.cs
- CodeAssignStatement.cs
- DbParameterCollectionHelper.cs
- CheckBoxStandardAdapter.cs
- XmlAtomicValue.cs
- HttpClientChannel.cs
- BlockCollection.cs
- StateMachineSubscription.cs
- BitStream.cs
- WinEventWrap.cs
- objectresult_tresulttype.cs
- ComboBoxAutomationPeer.cs
- DataSysAttribute.cs
- UnionExpr.cs
- FileLoadException.cs
- PersonalizationProviderHelper.cs
- XmlDataContract.cs
- DataGridTextBox.cs
- OdbcConnectionStringbuilder.cs
- DataServiceQueryException.cs
- ExpressionPrefixAttribute.cs
- XamlStackWriter.cs
- MultipartContentParser.cs
- SchemaElement.cs
- StyleBamlRecordReader.cs
- SymbolPair.cs
- DataGridViewCellConverter.cs
- DataBindingCollection.cs
- WebWorkflowRole.cs
- _ConnectOverlappedAsyncResult.cs
- LogSwitch.cs
- MetadataArtifactLoaderCompositeResource.cs
- ObfuscationAttribute.cs
- ArgIterator.cs