Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / LookupBindingPropertiesAttribute.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EpmContentSerializerBase.cs
- ListViewAutomationPeer.cs
- ScriptIgnoreAttribute.cs
- ImageMetadata.cs
- PropertyGeneratedEventArgs.cs
- ComplexLine.cs
- TextSpan.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- DynamicResourceExtensionConverter.cs
- PolicyLevel.cs
- JsonSerializer.cs
- SudsCommon.cs
- Vector3DAnimation.cs
- DragDeltaEventArgs.cs
- UrlUtility.cs
- XmlCharType.cs
- HashMembershipCondition.cs
- SingleObjectCollection.cs
- RepeatInfo.cs
- GridViewItemAutomationPeer.cs
- XamlWrappingReader.cs
- StrokeCollectionConverter.cs
- COM2Properties.cs
- CmsUtils.cs
- MatrixUtil.cs
- HttpCapabilitiesSectionHandler.cs
- validationstate.cs
- SchemaRegistration.cs
- IntegerFacetDescriptionElement.cs
- SystemResourceKey.cs
- PackageRelationshipSelector.cs
- PieceNameHelper.cs
- HttpRuntimeSection.cs
- SQLDecimalStorage.cs
- XmlSchemaExternal.cs
- InvokePattern.cs
- SectionInput.cs
- XmlSchemaIdentityConstraint.cs
- MarkupCompilePass1.cs
- SqlMethods.cs
- CodePageUtils.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- InkCanvasFeedbackAdorner.cs
- TripleDESCryptoServiceProvider.cs
- DrawingDrawingContext.cs
- ConfigurationPropertyCollection.cs
- FormViewRow.cs
- Utils.cs
- SoapElementAttribute.cs
- UnitySerializationHolder.cs
- Attributes.cs
- MorphHelper.cs
- ContentType.cs
- C14NUtil.cs
- SiteMapNode.cs
- KeyValuePair.cs
- CollaborationHelperFunctions.cs
- EntityDescriptor.cs
- StoreItemCollection.Loader.cs
- WindowsBrush.cs
- DesignerToolboxInfo.cs
- HierarchicalDataBoundControlAdapter.cs
- ElementProxy.cs
- PersonalizationProvider.cs
- ToolStripSettings.cs
- FontNamesConverter.cs
- DataSourceListEditor.cs
- ReferencedType.cs
- InitializeCorrelation.cs
- HtmlGenericControl.cs
- UIElement.cs
- TreeNodeStyleCollectionEditor.cs
- TextServicesHost.cs
- TerminateDesigner.cs
- XamlPoint3DCollectionSerializer.cs
- MultiTargetingUtil.cs
- ToolStripScrollButton.cs
- CodeSnippetStatement.cs
- ObjectItemCollection.cs
- DataListItemCollection.cs
- SspiSafeHandles.cs
- __Filters.cs
- TemplateColumn.cs
- PropertyReference.cs
- ADMembershipProvider.cs
- ToolboxItemCollection.cs
- PropertyGeneratedEventArgs.cs
- StringValidator.cs
- ByValueEqualityComparer.cs
- MetabaseReader.cs
- OperationCanceledException.cs
- Viewport3DAutomationPeer.cs
- HybridDictionary.cs
- sqlstateclientmanager.cs
- Rijndael.cs
- InfoCardService.cs
- SubMenuStyle.cs
- VectorConverter.cs
- MiniParameterInfo.cs
- XmlAggregates.cs