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
- List.cs
- EditCommandColumn.cs
- ServiceMetadataExtension.cs
- XmlTextWriter.cs
- _NegotiateClient.cs
- SqlComparer.cs
- Size3D.cs
- BrowserDefinition.cs
- DataGridViewDataErrorEventArgs.cs
- ContractDescription.cs
- ResourceReferenceExpression.cs
- ContentPropertyAttribute.cs
- Geometry.cs
- LogEntryHeaderv1Deserializer.cs
- ServiceOperationParameter.cs
- SecurityException.cs
- MsmqInputSessionChannel.cs
- Decoder.cs
- ArrangedElementCollection.cs
- ConfigurationSectionHelper.cs
- PersonalizableAttribute.cs
- CodeAttributeDeclarationCollection.cs
- StylusPointPropertyInfoDefaults.cs
- WebPartVerbCollection.cs
- SoapFault.cs
- EntityDataSourceReferenceGroup.cs
- WebPartDisplayModeCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DefaultExpressionVisitor.cs
- Hyperlink.cs
- DBSqlParserTable.cs
- InsufficientMemoryException.cs
- BrowserCapabilitiesFactoryBase.cs
- SetState.cs
- XmlMtomWriter.cs
- Helper.cs
- CodeCastExpression.cs
- AssertSection.cs
- CqlBlock.cs
- PartBasedPackageProperties.cs
- PageOutputColor.cs
- ProcessModelInfo.cs
- Attributes.cs
- ArrayConverter.cs
- EntityDataSourceView.cs
- MetadataUtilsSmi.cs
- categoryentry.cs
- DigitShape.cs
- InputBinder.cs
- GenericEnumConverter.cs
- WebControlsSection.cs
- TemplatedWizardStep.cs
- HtmlAnchor.cs
- DoubleLink.cs
- Pointer.cs
- UmAlQuraCalendar.cs
- QueryResult.cs
- BStrWrapper.cs
- WmlControlAdapter.cs
- HelpOperationInvoker.cs
- EntityModelBuildProvider.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Subtree.cs
- DirectoryGroupQuery.cs
- ArrayElementGridEntry.cs
- XmlSchemaFacet.cs
- SingleSelectRootGridEntry.cs
- DataGridViewSelectedRowCollection.cs
- FileAuthorizationModule.cs
- ClientType.cs
- SmiXetterAccessMap.cs
- keycontainerpermission.cs
- ControlEvent.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XPathParser.cs
- MediaCommands.cs
- DoubleLinkList.cs
- CheckBoxRenderer.cs
- RectAnimationClockResource.cs
- HttpCapabilitiesSectionHandler.cs
- MatrixTransform3D.cs
- BitmapSourceSafeMILHandle.cs
- TreeIterator.cs
- MethodCallTranslator.cs
- RoleBoolean.cs
- PositiveTimeSpanValidator.cs
- selecteditemcollection.cs
- TypedTableBase.cs
- Vector3D.cs
- HostingEnvironment.cs
- StagingAreaInputItem.cs
- WorkflowClientDeliverMessageWrapper.cs
- TranslateTransform.cs
- CodeSnippetStatement.cs
- PtsPage.cs
- WinEventHandler.cs
- BindingContext.cs
- WpfKnownTypeInvoker.cs
- OleDbCommandBuilder.cs
- OverflowException.cs