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
- DbBuffer.cs
- FileDataSource.cs
- OdbcException.cs
- AttributeInfo.cs
- ClusterRegistryConfigurationProvider.cs
- WebPartConnectionsCloseVerb.cs
- FilteredXmlReader.cs
- PreDigestedSignedInfo.cs
- PointF.cs
- ItemChangedEventArgs.cs
- CodeCastExpression.cs
- ConstraintStruct.cs
- ListBindingConverter.cs
- SimpleMailWebEventProvider.cs
- CssStyleCollection.cs
- EntityEntry.cs
- SafeEventLogWriteHandle.cs
- CompositeActivityDesigner.cs
- ConstraintEnumerator.cs
- OleDbPropertySetGuid.cs
- storepermission.cs
- BoundField.cs
- BroadcastEventHelper.cs
- XamlStackWriter.cs
- SqlTransaction.cs
- webbrowsersite.cs
- MD5CryptoServiceProvider.cs
- InternalBase.cs
- HttpServerUtilityWrapper.cs
- TextFormatterHost.cs
- Wizard.cs
- WindowsIdentity.cs
- SimpleBitVector32.cs
- WindowsListViewSubItem.cs
- ClientSettingsProvider.cs
- SQLInt16.cs
- CompositionAdorner.cs
- HtmlWindow.cs
- PenContexts.cs
- TypedLocationWrapper.cs
- ApplicationId.cs
- BrowserInteropHelper.cs
- StylusPlugInCollection.cs
- ApplicationBuildProvider.cs
- NetworkInterface.cs
- VisualState.cs
- DbParameterHelper.cs
- SortDescriptionCollection.cs
- Encoder.cs
- BindingValueChangedEventArgs.cs
- OpenTypeLayout.cs
- StylusDownEventArgs.cs
- ExportOptions.cs
- HttpResponse.cs
- Attributes.cs
- MemberRestriction.cs
- SafeCoTaskMem.cs
- SourceFileBuildProvider.cs
- DependencyObject.cs
- HttpCacheVaryByContentEncodings.cs
- SHA512.cs
- TextEditorSelection.cs
- DataGrid.cs
- XmlUtil.cs
- XmlMemberMapping.cs
- DifferencingCollection.cs
- ZipIOExtraField.cs
- PropertyValueChangedEvent.cs
- ElementNotAvailableException.cs
- COM2ExtendedUITypeEditor.cs
- FileDialog_Vista_Interop.cs
- ChildChangedEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- BitmapScalingModeValidation.cs
- SchemaHelper.cs
- MimeMultiPart.cs
- SiteMapPath.cs
- XPathQilFactory.cs
- ParserOptions.cs
- AssemblyHash.cs
- ReturnEventArgs.cs
- DataListItemCollection.cs
- CodeObjectCreateExpression.cs
- RegexCompilationInfo.cs
- BevelBitmapEffect.cs
- XmlEntityReference.cs
- Control.cs
- SafeNativeMethods.cs
- BinaryQueryOperator.cs
- HttpCookieCollection.cs
- Root.cs
- ObjectParameter.cs
- EventLogPropertySelector.cs
- SmtpAuthenticationManager.cs
- EntityDataSourceSelectedEventArgs.cs
- ProfileInfo.cs
- Serializer.cs
- DataPagerFieldItem.cs
- HeaderedContentControl.cs
- ExpressionParser.cs