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
- IntranetCredentialPolicy.cs
- ActiveDesignSurfaceEvent.cs
- PassportPrincipal.cs
- ContentElementCollection.cs
- Size.cs
- ColumnReorderedEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- DrawingContext.cs
- HttpInputStream.cs
- WebPartConnectionsEventArgs.cs
- CookieParameter.cs
- PropertyNames.cs
- BaseHashHelper.cs
- XmlReflectionImporter.cs
- Enum.cs
- StatusBarDesigner.cs
- AffineTransform3D.cs
- SerializationEventsCache.cs
- BamlLocalizableResource.cs
- RoutedEvent.cs
- RegisterInfo.cs
- SvcMapFileSerializer.cs
- ImageCodecInfo.cs
- NativeCppClassAttribute.cs
- SrgsText.cs
- DateTimeUtil.cs
- XsltFunctions.cs
- CorrelationInitializer.cs
- OperationContextScope.cs
- WinFormsSpinner.cs
- ConfigurationSectionGroup.cs
- DataGridItemEventArgs.cs
- WindowPattern.cs
- RoleGroup.cs
- RectAnimation.cs
- _NegoState.cs
- LabelAutomationPeer.cs
- XmlDesignerDataSourceView.cs
- MenuTracker.cs
- ChildrenQuery.cs
- BitmapCache.cs
- Encoder.cs
- ExpressionBindingCollection.cs
- HttpModulesInstallComponent.cs
- RtfToXamlLexer.cs
- GeneralTransform3D.cs
- RegexStringValidator.cs
- DataGridViewComboBoxCell.cs
- configsystem.cs
- FrameworkContentElementAutomationPeer.cs
- LayoutDump.cs
- _FtpControlStream.cs
- IsolatedStorage.cs
- Debugger.cs
- XmlSchemaSet.cs
- ProfileInfo.cs
- CngAlgorithm.cs
- IntPtr.cs
- PointUtil.cs
- Int32RectValueSerializer.cs
- BrowserCapabilitiesCodeGenerator.cs
- TemplatePropertyEntry.cs
- ISAPIApplicationHost.cs
- CommandTreeTypeHelper.cs
- StackOverflowException.cs
- ConnectivityStatus.cs
- Unit.cs
- PolicyReader.cs
- DelegateHelpers.Generated.cs
- BinaryConverter.cs
- TextEncodedRawTextWriter.cs
- EncoderFallback.cs
- Range.cs
- RectValueSerializer.cs
- WebBrowserUriTypeConverter.cs
- EventRecord.cs
- TextPointerBase.cs
- TextDecoration.cs
- RelationshipEndMember.cs
- SystemUdpStatistics.cs
- BamlLocalizabilityResolver.cs
- SafeFileMappingHandle.cs
- SafeBitVector32.cs
- CatalogZoneBase.cs
- ImplicitInputBrush.cs
- HttpVersion.cs
- ApplicationSecurityInfo.cs
- TableCellCollection.cs
- RouteParametersHelper.cs
- WebServiceTypeData.cs
- ToRequest.cs
- CommonDialog.cs
- ContainerAction.cs
- ModelItem.cs
- FormViewPagerRow.cs
- ElementAction.cs
- ToolStripDropDownButton.cs
- OperationPickerDialog.designer.cs
- OleDbMetaDataFactory.cs
- Positioning.cs