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
- ThreadExceptionDialog.cs
- DriveInfo.cs
- Pen.cs
- ReflectTypeDescriptionProvider.cs
- SkinBuilder.cs
- XmlComplianceUtil.cs
- SqlHelper.cs
- EncoderExceptionFallback.cs
- NumericPagerField.cs
- BadImageFormatException.cs
- AuditLevel.cs
- Normalization.cs
- RecordBuilder.cs
- ContentOperations.cs
- PrivilegedConfigurationManager.cs
- LinkTarget.cs
- DataComponentGenerator.cs
- RIPEMD160.cs
- XPathAxisIterator.cs
- DependsOnAttribute.cs
- CounterCreationDataConverter.cs
- ImplicitInputBrush.cs
- DoubleCollectionValueSerializer.cs
- PrincipalPermissionMode.cs
- XmlExpressionDumper.cs
- TableLayoutPanelBehavior.cs
- StrongNameIdentityPermission.cs
- SQLBoolean.cs
- ProxyFragment.cs
- SchemaMerger.cs
- SafeSecurityHandles.cs
- TextBoxBase.cs
- securitymgrsite.cs
- PrintEvent.cs
- GenericAuthenticationEventArgs.cs
- MetadataHelper.cs
- UnsafeNativeMethods.cs
- BitmapEffect.cs
- ItemDragEvent.cs
- OdbcInfoMessageEvent.cs
- ToolboxItemImageConverter.cs
- FormClosedEvent.cs
- IssuanceLicense.cs
- MsmqTransportBindingElement.cs
- UriExt.cs
- XmlBaseWriter.cs
- WebControlParameterProxy.cs
- BindMarkupExtensionSerializer.cs
- DateTimeFormatInfoScanner.cs
- UpdateProgress.cs
- ErasingStroke.cs
- QilCloneVisitor.cs
- UniqueIdentifierService.cs
- XmlSequenceWriter.cs
- RewritingProcessor.cs
- AbsoluteQuery.cs
- SByte.cs
- Scanner.cs
- Misc.cs
- ArgumentDirectionHelper.cs
- Section.cs
- WorkflowRuntimeService.cs
- TableCellAutomationPeer.cs
- SystemThemeKey.cs
- TableStyle.cs
- EntityDataSourceColumn.cs
- ContextInformation.cs
- SerializationUtilities.cs
- BasicHttpMessageSecurityElement.cs
- TypeSystem.cs
- ContentDisposition.cs
- MissingMemberException.cs
- DynamicQueryableWrapper.cs
- TraceContext.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- GridViewCommandEventArgs.cs
- PlainXmlSerializer.cs
- DataPagerFieldItem.cs
- DataGrid.cs
- EntityProxyFactory.cs
- GiveFeedbackEventArgs.cs
- HttpDictionary.cs
- ButtonColumn.cs
- GcSettings.cs
- ToolStripLocationCancelEventArgs.cs
- ImageUrlEditor.cs
- DescendantBaseQuery.cs
- SimpleTextLine.cs
- ZipFileInfoCollection.cs
- ClientScriptManagerWrapper.cs
- GcHandle.cs
- AttachedAnnotation.cs
- StatusBarDrawItemEvent.cs
- RoleServiceManager.cs
- CapabilitiesPattern.cs
- FontResourceCache.cs
- NTAccount.cs
- ISO2022Encoding.cs
- TargetException.cs
- BaseConfigurationRecord.cs