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
- ToolStripDropDownButton.cs
- CommandBinding.cs
- ResourcePermissionBaseEntry.cs
- SessionSwitchEventArgs.cs
- Vector3DAnimationUsingKeyFrames.cs
- XmlDesignerDataSourceView.cs
- XmlAtomicValue.cs
- ByteConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- BaseProcessProtocolHandler.cs
- DataColumnCollection.cs
- RtfNavigator.cs
- QueryTaskGroupState.cs
- NetTcpSectionData.cs
- AccessorTable.cs
- FileLevelControlBuilderAttribute.cs
- AccessedThroughPropertyAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- MsmqHostedTransportManager.cs
- PrtCap_Public.cs
- IPEndPointCollection.cs
- HttpCacheVaryByContentEncodings.cs
- DataDocumentXPathNavigator.cs
- TextParagraphView.cs
- ImmComposition.cs
- FloatMinMaxAggregationOperator.cs
- Tile.cs
- ClearCollection.cs
- AdRotator.cs
- MsdtcClusterUtils.cs
- ValidationSummary.cs
- XPathSingletonIterator.cs
- XmlnsCache.cs
- WindowsPen.cs
- SettingsAttributeDictionary.cs
- ClientCultureInfo.cs
- OleDbErrorCollection.cs
- DispatcherSynchronizationContext.cs
- DataGridLinkButton.cs
- BrowserCapabilitiesFactory.cs
- Scheduler.cs
- DataKeyPropertyAttribute.cs
- ObjectViewFactory.cs
- CanonicalFormWriter.cs
- SqlInfoMessageEvent.cs
- ComponentRenameEvent.cs
- CodeAssignStatement.cs
- CreateUserWizardDesigner.cs
- StrokeCollectionDefaultValueFactory.cs
- DoubleLink.cs
- UriExt.cs
- ConstructorNeedsTagAttribute.cs
- HtmlCalendarAdapter.cs
- SByteConverter.cs
- AssemblyInfo.cs
- XmlWriterTraceListener.cs
- NativeWrapper.cs
- LocalIdKeyIdentifierClause.cs
- ConnectionStringsExpressionBuilder.cs
- PeerNameRecordCollection.cs
- Column.cs
- ConditionValidator.cs
- Queue.cs
- PrivilegedConfigurationManager.cs
- InternalBufferOverflowException.cs
- DataObjectMethodAttribute.cs
- ParseHttpDate.cs
- Int32Collection.cs
- WMIGenerator.cs
- AsyncWaitHandle.cs
- WaitHandleCannotBeOpenedException.cs
- ClassImporter.cs
- sqlser.cs
- Token.cs
- UMPAttributes.cs
- FixedTextPointer.cs
- ObjectDataSourceFilteringEventArgs.cs
- PropertyInfoSet.cs
- MutableAssemblyCacheEntry.cs
- XmlNode.cs
- HostedImpersonationContext.cs
- ModelItem.cs
- EmptyArray.cs
- DataControlFieldCollection.cs
- QueueProcessor.cs
- ListViewHitTestInfo.cs
- URLAttribute.cs
- EpmTargetTree.cs
- TaiwanCalendar.cs
- AuthenticationService.cs
- ACE.cs
- TcpProcessProtocolHandler.cs
- TextMessageEncodingElement.cs
- RijndaelManagedTransform.cs
- Vector3DAnimationBase.cs
- SspiSafeHandles.cs
- M3DUtil.cs
- SuppressMergeCheckAttribute.cs
- LongValidator.cs
- XsltCompileContext.cs