Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PhysicalAddress.cs
- MenuAutomationPeer.cs
- UnauthorizedWebPart.cs
- XmlComplianceUtil.cs
- DataControlButton.cs
- DataListCommandEventArgs.cs
- UnmanagedBitmapWrapper.cs
- LongCountAggregationOperator.cs
- SafeFileMappingHandle.cs
- AccessDataSourceView.cs
- DrawingAttributeSerializer.cs
- NativeMethodsCLR.cs
- _ShellExpression.cs
- OleDbCommandBuilder.cs
- ErrorStyle.cs
- SkinIDTypeConverter.cs
- Directory.cs
- WsrmTraceRecord.cs
- DateTimeOffsetAdapter.cs
- XmlElementAttributes.cs
- DataRelationPropertyDescriptor.cs
- StringReader.cs
- CommonDialog.cs
- CodeExpressionStatement.cs
- MouseOverProperty.cs
- OleDbError.cs
- WebPartCatalogAddVerb.cs
- CryptoApi.cs
- ObjectCacheHost.cs
- GeometryCollection.cs
- TableStyle.cs
- NonClientArea.cs
- RTLAwareMessageBox.cs
- TableCell.cs
- DataServiceRequest.cs
- Vector.cs
- TextPenaltyModule.cs
- TextMarkerSource.cs
- DataChangedEventManager.cs
- MetaModel.cs
- DbConnectionOptions.cs
- CommandArguments.cs
- ObjectComplexPropertyMapping.cs
- WebPartCloseVerb.cs
- XmlMessageFormatter.cs
- HttpCachePolicy.cs
- Font.cs
- WebPartAuthorizationEventArgs.cs
- UnsafeNativeMethods.cs
- FormatSelectingMessageInspector.cs
- URLString.cs
- TextTreeNode.cs
- DateTimeSerializationSection.cs
- InternalEnumValidatorAttribute.cs
- SamlConstants.cs
- DoubleCollection.cs
- SafeEventLogReadHandle.cs
- SR.cs
- ImageKeyConverter.cs
- StatusBarDrawItemEvent.cs
- PanelStyle.cs
- OdbcFactory.cs
- WebPartTransformerCollection.cs
- PerformanceCounter.cs
- RoleGroup.cs
- HtmlTextArea.cs
- SelectionRange.cs
- PersonalizationProviderHelper.cs
- ResourceDictionaryCollection.cs
- Transform.cs
- XNodeNavigator.cs
- XPathArrayIterator.cs
- DropShadowBitmapEffect.cs
- FocusWithinProperty.cs
- CookieProtection.cs
- TableColumn.cs
- SmtpFailedRecipientsException.cs
- TextBoxAutoCompleteSourceConverter.cs
- Int16KeyFrameCollection.cs
- sqlstateclientmanager.cs
- GridViewSortEventArgs.cs
- SafeFindHandle.cs
- XmlIncludeAttribute.cs
- PrintControllerWithStatusDialog.cs
- WinEventWrap.cs
- TriggerAction.cs
- PenThreadWorker.cs
- Mutex.cs
- ProcessThreadCollection.cs
- baseaxisquery.cs
- SecurityRuntime.cs
- IPHostEntry.cs
- DataColumnMapping.cs
- SHA256Managed.cs
- ListView.cs
- DataSourceHelper.cs
- ALinqExpressionVisitor.cs
- EncryptedKeyIdentifierClause.cs
- DateTimeParse.cs
- SEHException.cs