Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- NonClientArea.cs
- DropSource.cs
- ReadingWritingEntityEventArgs.cs
- RelationshipFixer.cs
- StringFormat.cs
- CodeExpressionCollection.cs
- CopyNamespacesAction.cs
- EncryptedXml.cs
- unsafenativemethodstextservices.cs
- ToolStripComboBox.cs
- ConfigXmlComment.cs
- RangeValuePattern.cs
- Utils.cs
- Size3D.cs
- Function.cs
- CodeMemberEvent.cs
- SessionStateSection.cs
- StorageModelBuildProvider.cs
- sqlinternaltransaction.cs
- Module.cs
- PatternMatcher.cs
- FormsAuthenticationCredentials.cs
- SamlAssertion.cs
- ETagAttribute.cs
- XmlNamedNodeMap.cs
- DataGridViewImageCell.cs
- DynamicFilterExpression.cs
- ClientSettingsProvider.cs
- SafePipeHandle.cs
- ApplicationFileParser.cs
- XamlLoadErrorInfo.cs
- FormDocumentDesigner.cs
- METAHEADER.cs
- JsonUriDataContract.cs
- SrgsDocument.cs
- SqlRewriteScalarSubqueries.cs
- sqlstateclientmanager.cs
- _UncName.cs
- ToolStripTextBox.cs
- RowSpanVector.cs
- MenuItemCollection.cs
- MsmqAppDomainProtocolHandler.cs
- CryptoKeySecurity.cs
- LinearKeyFrames.cs
- CircleHotSpot.cs
- NativeBuffer.cs
- LinqExpressionNormalizer.cs
- ContentOperations.cs
- XmlDataLoader.cs
- Context.cs
- BindingWorker.cs
- InheritedPropertyChangedEventArgs.cs
- EditorBrowsableAttribute.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XmlSchemaFacet.cs
- TaiwanCalendar.cs
- SerialPort.cs
- PointHitTestParameters.cs
- tooltip.cs
- CommandBinding.cs
- BrushMappingModeValidation.cs
- XhtmlBasicObjectListAdapter.cs
- UserMapPath.cs
- SqlGenerator.cs
- ColorMatrix.cs
- UsernameTokenFactoryCredential.cs
- IncrementalReadDecoders.cs
- TableDetailsCollection.cs
- AxisAngleRotation3D.cs
- HttpModuleCollection.cs
- HashRepartitionEnumerator.cs
- XmlSchemaChoice.cs
- RoutedEventValueSerializer.cs
- SystemWebSectionGroup.cs
- PermissionToken.cs
- ItemContainerGenerator.cs
- OutputWindow.cs
- RequestTimeoutManager.cs
- FilterException.cs
- ProxyBuilder.cs
- SapiRecoContext.cs
- webclient.cs
- SelectionEditingBehavior.cs
- TextDecorationCollectionConverter.cs
- XmlSerializationGeneratedCode.cs
- XmlRawWriter.cs
- SelectionProviderWrapper.cs
- NetNamedPipeBindingElement.cs
- KeyValuePair.cs
- StylusEditingBehavior.cs
- GroupQuery.cs
- PolygonHotSpot.cs
- CqlGenerator.cs
- CodeNamespaceImportCollection.cs
- IndividualDeviceConfig.cs
- DbProviderFactories.cs
- LoaderAllocator.cs
- Function.cs
- dbenumerator.cs
- BrowserTree.cs