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
- IDictionary.cs
- Transform3DGroup.cs
- ValidationPropertyAttribute.cs
- TemplateLookupAction.cs
- XmlSecureResolver.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HtmlGenericControl.cs
- TextTreeInsertUndoUnit.cs
- GraphicsContext.cs
- ChannelDispatcher.cs
- CodeCompiler.cs
- TrustLevelCollection.cs
- CounterCreationData.cs
- Propagator.JoinPropagator.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- UIElementCollection.cs
- WebPartMenuStyle.cs
- ImageSource.cs
- EnvironmentPermission.cs
- ParallelLoopState.cs
- HandlerBase.cs
- WebEventCodes.cs
- Compiler.cs
- OperatingSystem.cs
- EnlistmentState.cs
- EntityCommandDefinition.cs
- RuleEngine.cs
- BorderSidesEditor.cs
- PeerDefaultCustomResolverClient.cs
- DESCryptoServiceProvider.cs
- XmlSerializer.cs
- ProcessHostServerConfig.cs
- SpeechUI.cs
- HttpStreamFormatter.cs
- HighlightVisual.cs
- FastEncoderWindow.cs
- BinaryParser.cs
- SmtpMail.cs
- PassportPrincipal.cs
- CompilerGlobalScopeAttribute.cs
- FormatterConverter.cs
- SqlGenericUtil.cs
- MultiBinding.cs
- _IPv4Address.cs
- Bezier.cs
- ConfigurationPropertyAttribute.cs
- CheckPair.cs
- CanonicalXml.cs
- MessageSecurityVersion.cs
- TableItemPatternIdentifiers.cs
- PolicyStatement.cs
- XmlAnyElementAttributes.cs
- SupportingTokenChannel.cs
- OleAutBinder.cs
- WindowsListViewItemStartMenu.cs
- GridItem.cs
- DataObject.cs
- EventDescriptor.cs
- FormsIdentity.cs
- WinFormsSecurity.cs
- CodeTypeConstructor.cs
- ConditionedDesigner.cs
- ResponseStream.cs
- RefreshEventArgs.cs
- DateTimeOffsetAdapter.cs
- TargetConverter.cs
- HybridDictionary.cs
- _TimerThread.cs
- WindowsProgressbar.cs
- DelegateCompletionCallbackWrapper.cs
- ColumnClickEvent.cs
- AccessControlList.cs
- ListBindingHelper.cs
- PtsHost.cs
- CalendarAutomationPeer.cs
- FrugalMap.cs
- DateTimeUtil.cs
- ClientScriptManagerWrapper.cs
- ProxyDataContractResolver.cs
- DocumentGridPage.cs
- ObjectTag.cs
- TiffBitmapEncoder.cs
- FileSecurity.cs
- UIElement3DAutomationPeer.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridViewBand.cs
- _AuthenticationState.cs
- InvalidProgramException.cs
- InkCanvasInnerCanvas.cs
- ConfigurationSectionCollection.cs
- XmlBaseWriter.cs
- RoleManagerModule.cs
- GridEntryCollection.cs
- ImageCodecInfo.cs
- HostingPreferredMapPath.cs
- PeerFlooder.cs
- Collection.cs
- BaseAutoFormat.cs
- FixedSOMContainer.cs
- Decimal.cs