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
- HtmlElement.cs
- StringBuilder.cs
- RepeaterItemEventArgs.cs
- TraceSection.cs
- EnumMember.cs
- StorageConditionPropertyMapping.cs
- DelegatingTypeDescriptionProvider.cs
- IntellisenseTextBox.cs
- DbDataSourceEnumerator.cs
- Margins.cs
- RawStylusInputCustomDataList.cs
- PackagePartCollection.cs
- WebPartVerbCollection.cs
- GuidTagList.cs
- AllMembershipCondition.cs
- ImageField.cs
- ClaimTypeElementCollection.cs
- Span.cs
- ProcessModelInfo.cs
- SafeArrayTypeMismatchException.cs
- FormatControl.cs
- TemplateComponentConnector.cs
- CookielessHelper.cs
- WindowsTokenRoleProvider.cs
- InputLanguageEventArgs.cs
- SBCSCodePageEncoding.cs
- TextPattern.cs
- Throw.cs
- PageCopyCount.cs
- UseLicense.cs
- ReadOnlyActivityGlyph.cs
- BrowserDefinitionCollection.cs
- SEHException.cs
- TaskbarItemInfo.cs
- FamilyCollection.cs
- KnowledgeBase.cs
- X509CertificateCollection.cs
- ControlPropertyNameConverter.cs
- QueryOperationResponseOfT.cs
- BulletChrome.cs
- XmlSerializationGeneratedCode.cs
- RowToParametersTransformer.cs
- SelectManyQueryOperator.cs
- HostUtils.cs
- ConvertersCollection.cs
- CommentEmitter.cs
- ExtensionElement.cs
- ParamArrayAttribute.cs
- DragEventArgs.cs
- PageContentAsyncResult.cs
- UpdatePanel.cs
- LocalBuilder.cs
- nulltextnavigator.cs
- SessionConnectionReader.cs
- CodeComment.cs
- DBConcurrencyException.cs
- GridEntry.cs
- EnumBuilder.cs
- BitStack.cs
- wmiprovider.cs
- StateRuntime.cs
- UrlMappingsSection.cs
- TableRow.cs
- Stacktrace.cs
- DispatcherExceptionFilterEventArgs.cs
- MbpInfo.cs
- ResourceExpression.cs
- ObjectDataProvider.cs
- SqlConnectionFactory.cs
- SystemWebCachingSectionGroup.cs
- SharedStatics.cs
- ZoneMembershipCondition.cs
- EntityDataSourceDesignerHelper.cs
- Model3DCollection.cs
- ExplicitDiscriminatorMap.cs
- ConfigurationManagerInternalFactory.cs
- RegexCompiler.cs
- QueryOutputWriterV1.cs
- HttpModulesSection.cs
- CachingHintValidation.cs
- StateDesigner.Helpers.cs
- sortedlist.cs
- MapPathBasedVirtualPathProvider.cs
- ControlEvent.cs
- AlphabetConverter.cs
- AffineTransform3D.cs
- ToolStripDropTargetManager.cs
- DiagnosticTraceSource.cs
- WebBrowserProgressChangedEventHandler.cs
- CheckableControlBaseAdapter.cs
- StyleModeStack.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- __FastResourceComparer.cs
- Point.cs
- WindowsSlider.cs
- SizeFConverter.cs
- StandardToolWindows.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ToolStripContainerActionList.cs
- MenuItemBinding.cs