Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1305376 / 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. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MembershipSection.cs
- EntitySetBase.cs
- WindowsSecurityToken.cs
- BaseTreeIterator.cs
- TripleDESCryptoServiceProvider.cs
- KeyedHashAlgorithm.cs
- SerializationInfoEnumerator.cs
- CompiledAction.cs
- ExpandableObjectConverter.cs
- OdbcCommandBuilder.cs
- Int64Animation.cs
- ListViewItemMouseHoverEvent.cs
- WindowsTitleBar.cs
- BitmapEffectDrawing.cs
- OletxDependentTransaction.cs
- SkinBuilder.cs
- Internal.cs
- SoapConverter.cs
- BinaryConverter.cs
- SettingsAttributeDictionary.cs
- GeometryGroup.cs
- Hex.cs
- PartDesigner.cs
- ResourceDescriptionAttribute.cs
- NameTable.cs
- XmlSchemaAll.cs
- SqlErrorCollection.cs
- ManipulationDelta.cs
- ProgressBarHighlightConverter.cs
- JsonReader.cs
- x509utils.cs
- SQLGuidStorage.cs
- ScriptModule.cs
- RuleInfoComparer.cs
- TableCell.cs
- CodeIdentifier.cs
- TableRow.cs
- sqlcontext.cs
- TableRowGroup.cs
- DefaultValueConverter.cs
- BaseConfigurationRecord.cs
- TextEffectResolver.cs
- SQLDateTimeStorage.cs
- FormsAuthentication.cs
- ExpandCollapseProviderWrapper.cs
- latinshape.cs
- XmlSerializationReader.cs
- WindowsListView.cs
- TdsParserHelperClasses.cs
- ObjectListGeneralPage.cs
- ScrollChangedEventArgs.cs
- UnsettableComboBox.cs
- InstanceCollisionException.cs
- CompilationRelaxations.cs
- ToolStripTextBox.cs
- BitmapInitialize.cs
- CompositionAdorner.cs
- HttpGetProtocolReflector.cs
- SafeNativeMethods.cs
- SqlUDTStorage.cs
- SystemIPv6InterfaceProperties.cs
- DateTimeValueSerializer.cs
- SafePointer.cs
- ArrayWithOffset.cs
- WindowsGraphicsCacheManager.cs
- Evaluator.cs
- SubstitutionDesigner.cs
- ServerReliableChannelBinder.cs
- CopyAttributesAction.cs
- XmlNodeList.cs
- BitmapMetadataBlob.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- RemoveStoryboard.cs
- ThrowHelper.cs
- BitmapImage.cs
- CommandSet.cs
- SQLDecimal.cs
- DataColumnMapping.cs
- RootBrowserWindowProxy.cs
- RootBrowserWindow.cs
- AgileSafeNativeMemoryHandle.cs
- AddInServer.cs
- odbcmetadatafactory.cs
- PrimitiveSchema.cs
- WebBrowserEvent.cs
- RunInstallerAttribute.cs
- CorrelationValidator.cs
- Transform.cs
- GregorianCalendar.cs
- MimeMapping.cs
- WebPartDeleteVerb.cs
- SafeWaitHandle.cs
- TableLayoutPanel.cs
- LoadItemsEventArgs.cs
- EventWaitHandleSecurity.cs
- AxHost.cs
- FormsAuthenticationUserCollection.cs
- XmlQueryRuntime.cs
- HtmlFormParameterReader.cs
- DataColumnChangeEvent.cs