Code:
/ FX-1434 / FX-1434 / 1.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
- Padding.cs
- MailHeaderInfo.cs
- VerificationAttribute.cs
- ResourceExpressionEditorSheet.cs
- PersonalizationProviderCollection.cs
- XPathNavigator.cs
- TextMetrics.cs
- HtmlControl.cs
- LayoutUtils.cs
- ContentElement.cs
- StrongNameKeyPair.cs
- ColumnWidthChangedEvent.cs
- BitmapEffectOutputConnector.cs
- TdsRecordBufferSetter.cs
- CorrelationValidator.cs
- TextAutomationPeer.cs
- DictionaryItemsCollection.cs
- SettingsContext.cs
- DCSafeHandle.cs
- FixedDSBuilder.cs
- MetafileHeader.cs
- RoleGroupCollection.cs
- SecurityManager.cs
- Rect3D.cs
- DocumentGrid.cs
- BinHexDecoder.cs
- WebPartTracker.cs
- TextContainerChangedEventArgs.cs
- ViewStateAttachedPropertyFeature.cs
- XmlLinkedNode.cs
- HandoffBehavior.cs
- StructuralObject.cs
- SHA1CryptoServiceProvider.cs
- DoubleAnimationBase.cs
- WebPartMinimizeVerb.cs
- TagPrefixAttribute.cs
- ContainerAction.cs
- ListItem.cs
- PkcsMisc.cs
- StackOverflowException.cs
- PostBackOptions.cs
- XmlText.cs
- LifetimeMonitor.cs
- RequestNavigateEventArgs.cs
- UserValidatedEventArgs.cs
- GuidelineCollection.cs
- TextMarkerSource.cs
- LoadedOrUnloadedOperation.cs
- QuaternionRotation3D.cs
- FieldNameLookup.cs
- StatusBarAutomationPeer.cs
- SystemUnicastIPAddressInformation.cs
- XmlAttributeOverrides.cs
- InertiaExpansionBehavior.cs
- XmlNode.cs
- DocumentSchemaValidator.cs
- ManipulationCompletedEventArgs.cs
- MachineKeySection.cs
- SelectionManager.cs
- InkCanvasFeedbackAdorner.cs
- SvcMapFileLoader.cs
- RetrieveVirtualItemEventArgs.cs
- DesignerSerializationManager.cs
- OutputScopeManager.cs
- ListItemCollection.cs
- XmlReflectionImporter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DeriveBytes.cs
- OracleParameter.cs
- ProfileWorkflowElement.cs
- ColumnCollection.cs
- DictionaryEntry.cs
- ValidationResult.cs
- BackStopAuthenticationModule.cs
- MatrixCamera.cs
- ListViewDataItem.cs
- Membership.cs
- StandardBindingImporter.cs
- OdbcDataReader.cs
- WebPartEventArgs.cs
- SrgsGrammarCompiler.cs
- PropertyRecord.cs
- Rect.cs
- EditorPart.cs
- EventProviderTraceListener.cs
- TextReader.cs
- GridViewSelectEventArgs.cs
- ColorInterpolationModeValidation.cs
- Transform3D.cs
- SafeSecurityHandles.cs
- LayoutDump.cs
- HtmlInputButton.cs
- UnsafeNativeMethods.cs
- __Filters.cs
- TemplatePartAttribute.cs
- ExpressionBuilderCollection.cs
- PeerResolverSettings.cs
- Delegate.cs
- WindowsFormsLinkLabel.cs
- HashJoinQueryOperatorEnumerator.cs