Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1 / ComplexBindingPropertiesAttribute.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 ComplexBindingPropertiesAttribute : Attribute { private readonly string dataSource; private readonly string dataMember; ///Specifies the data source and data member properties for a component. ////// public ComplexBindingPropertiesAttribute() { this.dataSource = null; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource) { this.dataSource = dataSource; this.dataMember = null; } ////// Initializes a new instance of /// the ///class. /// /// public ComplexBindingPropertiesAttribute(string dataSource, string dataMember) { this.dataSource = dataSource; this.dataMember = dataMember; } ////// 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 DataMember { get { return dataMember; } } ////// Gets the name of the data member property for the component this attribute is /// bound to. /// ////// public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute(); public override bool Equals(object obj) { ComplexBindingPropertiesAttribute other = obj as ComplexBindingPropertiesAttribute; return other != null && other.DataSource == dataSource && other.DataMember == dataMember; } 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
- ExcCanonicalXml.cs
- CustomMenuItemCollection.cs
- OutputCacheSettings.cs
- FieldInfo.cs
- SystemUdpStatistics.cs
- Timeline.cs
- ExclusiveTcpListener.cs
- CommandValueSerializer.cs
- XPathNavigatorKeyComparer.cs
- HtmlGenericControl.cs
- HttpApplicationFactory.cs
- PasswordRecoveryDesigner.cs
- DbConnectionPoolGroup.cs
- AuthorizationRuleCollection.cs
- DescendantBaseQuery.cs
- LinqDataSourceHelper.cs
- ColumnTypeConverter.cs
- ResourceProviderFactory.cs
- TableStyle.cs
- InkSerializer.cs
- ReliabilityContractAttribute.cs
- MobileControlsSectionHandler.cs
- WebPartEventArgs.cs
- X509SecurityTokenParameters.cs
- HwndSourceParameters.cs
- Lazy.cs
- Int32RectValueSerializer.cs
- PersistChildrenAttribute.cs
- WindowsSlider.cs
- PersonalizableTypeEntry.cs
- JsonReaderWriterFactory.cs
- EventLogConfiguration.cs
- Schema.cs
- smtppermission.cs
- TableItemProviderWrapper.cs
- Globals.cs
- Frame.cs
- ValueTypeFixupInfo.cs
- MultiAsyncResult.cs
- FontWeightConverter.cs
- OdbcException.cs
- WebReference.cs
- PartialClassGenerationTask.cs
- DataGridViewCellStyle.cs
- IdentityReference.cs
- TimeIntervalCollection.cs
- WpfWebRequestHelper.cs
- Viewport2DVisual3D.cs
- ResourceReferenceExpressionConverter.cs
- WindowsListViewSubItem.cs
- ReaderWriterLock.cs
- SharedDp.cs
- TitleStyle.cs
- Typeface.cs
- DetailsViewRowCollection.cs
- DataKey.cs
- BufferedWebEventProvider.cs
- smtpconnection.cs
- CodeLinePragma.cs
- KoreanCalendar.cs
- StopStoryboard.cs
- XamlContextStack.cs
- HideDisabledControlAdapter.cs
- XPathNodeInfoAtom.cs
- SqlExpander.cs
- QueryOutputWriter.cs
- CapabilitiesSection.cs
- GridView.cs
- XmlNullResolver.cs
- AssertFilter.cs
- TabletCollection.cs
- XmlDataSourceNodeDescriptor.cs
- XmlSchemaElement.cs
- CompiledIdentityConstraint.cs
- RepeatEnumerable.cs
- ViewCellSlot.cs
- CodeValidator.cs
- PropertyPathWorker.cs
- DetailsViewDesigner.cs
- PolyBezierSegment.cs
- SvcMapFileLoader.cs
- Part.cs
- NativeObjectSecurity.cs
- WebPartCatalogAddVerb.cs
- CollectionChangeEventArgs.cs
- TextProperties.cs
- ElementAtQueryOperator.cs
- XmlSerializerFactory.cs
- ConvertEvent.cs
- ParamArrayAttribute.cs
- Select.cs
- odbcmetadatacollectionnames.cs
- ParagraphResult.cs
- GridViewItemAutomationPeer.cs
- CharStorage.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DateTimePicker.cs
- PropertyGridCommands.cs
- Wizard.cs
- ClientSettingsProvider.cs