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
- CodeDirectiveCollection.cs
- TagMapCollection.cs
- DataError.cs
- PaintEvent.cs
- UnsafeNativeMethods.cs
- MLangCodePageEncoding.cs
- SoapAttributeAttribute.cs
- QuaternionRotation3D.cs
- FormViewInsertedEventArgs.cs
- ExtentCqlBlock.cs
- SerializationFieldInfo.cs
- MemberRelationshipService.cs
- DataGrid.cs
- Overlapped.cs
- IndentedTextWriter.cs
- ActiveDocumentEvent.cs
- TraceProvider.cs
- InputMethodStateChangeEventArgs.cs
- NamedPermissionSet.cs
- SqlDataSource.cs
- DynamicValidatorEventArgs.cs
- CompoundFileStorageReference.cs
- DesignBindingValueUIHandler.cs
- ImageCodecInfo.cs
- CharKeyFrameCollection.cs
- CustomErrorsSection.cs
- TaskFormBase.cs
- TrackingWorkflowEventArgs.cs
- UpdateDelegates.Generated.cs
- DataGridSortCommandEventArgs.cs
- DataBoundControlHelper.cs
- DownloadProgressEventArgs.cs
- X509Chain.cs
- RegularExpressionValidator.cs
- ImageMetadata.cs
- IItemProperties.cs
- BamlWriter.cs
- MsmqTransportSecurityElement.cs
- ThreadInterruptedException.cs
- LinqDataSourceStatusEventArgs.cs
- Tuple.cs
- XPathNode.cs
- DataPagerFieldCommandEventArgs.cs
- DesignerForm.cs
- TrustManager.cs
- MetadataArtifactLoader.cs
- LayoutSettings.cs
- ObjectQueryState.cs
- TextWriter.cs
- Substitution.cs
- StrokeNodeOperations.cs
- EnumBuilder.cs
- ResourceSet.cs
- WebPartTracker.cs
- ApplyTemplatesAction.cs
- XmlDocumentSchema.cs
- BuildResultCache.cs
- MaterializeFromAtom.cs
- ListViewItemSelectionChangedEvent.cs
- TraceHwndHost.cs
- GestureRecognizer.cs
- Comparer.cs
- ZipArchive.cs
- Cursor.cs
- HwndStylusInputProvider.cs
- ExtensionQuery.cs
- DefaultCommandConverter.cs
- BaseCodePageEncoding.cs
- OleDbConnectionInternal.cs
- SymbolTable.cs
- InternalCompensate.cs
- TextTrailingWordEllipsis.cs
- TextProperties.cs
- ServiceNameCollection.cs
- ObjectSecurity.cs
- ObfuscateAssemblyAttribute.cs
- Peer.cs
- SqlUtils.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- DependencyProperty.cs
- ImpersonateTokenRef.cs
- DashStyle.cs
- SimpleWorkerRequest.cs
- _SslSessionsCache.cs
- DefaultEvaluationContext.cs
- EntityFunctions.cs
- PlatformNotSupportedException.cs
- FileDialogCustomPlacesCollection.cs
- SurrogateEncoder.cs
- TableRowCollection.cs
- WorkflowServiceOperationListItem.cs
- XmlQueryType.cs
- ModelServiceImpl.cs
- ConstNode.cs
- HttpPostProtocolReflector.cs
- IHttpResponseInternal.cs
- ColumnPropertiesGroup.cs
- PackageRelationship.cs
- Missing.cs
- CodeArrayCreateExpression.cs