Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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(); } } } // 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
- InvalidPrinterException.cs
- TypeSource.cs
- DriveNotFoundException.cs
- IndexedString.cs
- XamlStackWriter.cs
- returneventsaver.cs
- StrokeCollection2.cs
- Stream.cs
- BaseCollection.cs
- Parameter.cs
- ParameterModifier.cs
- SafeProcessHandle.cs
- WebPermission.cs
- Line.cs
- DependencyPropertyKey.cs
- ToolConsole.cs
- MailWebEventProvider.cs
- SortQuery.cs
- PartitionerQueryOperator.cs
- ContextMarshalException.cs
- ObjectTag.cs
- PerformanceCounterPermissionEntry.cs
- CAGDesigner.cs
- PersonalizationState.cs
- ConfigurationSchemaErrors.cs
- ControlTemplate.cs
- BitmapEffectOutputConnector.cs
- ConvertEvent.cs
- TrustLevel.cs
- AsyncSerializedWorker.cs
- Int64KeyFrameCollection.cs
- UnionCodeGroup.cs
- TextTreeNode.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ListViewContainer.cs
- ClassDataContract.cs
- CommonDialog.cs
- XmlDataCollection.cs
- ThreadStartException.cs
- HtmlImage.cs
- ErrorFormatter.cs
- ADMembershipProvider.cs
- ManagementDateTime.cs
- BypassElement.cs
- PartialTrustValidationBehavior.cs
- SubstitutionList.cs
- HttpCookie.cs
- XmlWellformedWriter.cs
- EventLogPermissionAttribute.cs
- SequentialUshortCollection.cs
- ProjectionPathSegment.cs
- EventLogPermissionEntryCollection.cs
- TransactionFilter.cs
- ActivatableWorkflowsQueryResult.cs
- JournalEntryListConverter.cs
- ResourceDisplayNameAttribute.cs
- IndexerNameAttribute.cs
- AxHostDesigner.cs
- LongValidator.cs
- DiagnosticsElement.cs
- AncillaryOps.cs
- DocumentPageView.cs
- CodeTypeParameter.cs
- TraceUtility.cs
- PropertyDescriptorGridEntry.cs
- arclist.cs
- OperationInvokerTrace.cs
- MetabaseServerConfig.cs
- ExpressionEditorAttribute.cs
- SubordinateTransaction.cs
- FormsAuthentication.cs
- AudioFormatConverter.cs
- TextViewBase.cs
- TypeDefinition.cs
- ThreadAttributes.cs
- CheckBox.cs
- EventLog.cs
- Misc.cs
- CacheOutputQuery.cs
- CellRelation.cs
- Help.cs
- WebBrowserContainer.cs
- MetadataArtifactLoaderFile.cs
- FeatureSupport.cs
- StylusPointPropertyInfoDefaults.cs
- AccessedThroughPropertyAttribute.cs
- InputChannelAcceptor.cs
- Animatable.cs
- FirstQueryOperator.cs
- WebMessageEncodingElement.cs
- GridEntry.cs
- dataprotectionpermissionattribute.cs
- UpWmlPageAdapter.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectListTitleAttribute.cs
- IndicCharClassifier.cs
- NativeMethods.cs
- Merger.cs
- CreateUserWizard.cs
- Latin1Encoding.cs