Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- HandlerFactoryCache.cs
- SqlRowUpdatingEvent.cs
- SmtpSection.cs
- AssemblyCache.cs
- CultureTable.cs
- HashAlgorithm.cs
- CurrencyManager.cs
- ProviderIncompatibleException.cs
- BlobPersonalizationState.cs
- ApplyImportsAction.cs
- CompilerWrapper.cs
- StateWorkerRequest.cs
- SafeNativeMethods.cs
- XPathDescendantIterator.cs
- PropertyNames.cs
- SchemaImporterExtensionElementCollection.cs
- InfoCardSymmetricCrypto.cs
- MemoryMappedFile.cs
- FlowDocumentReader.cs
- XmlDataLoader.cs
- ThicknessConverter.cs
- Models.cs
- DbConnectionOptions.cs
- InteropExecutor.cs
- CustomAttributeSerializer.cs
- DatagridviewDisplayedBandsData.cs
- XmlAttribute.cs
- UpdatePanelTrigger.cs
- DBSchemaTable.cs
- ReflectionPermission.cs
- TemplateBuilder.cs
- NameSpaceEvent.cs
- MenuAdapter.cs
- TargetControlTypeAttribute.cs
- ZoneLinkButton.cs
- Content.cs
- AppLevelCompilationSectionCache.cs
- ClientSideQueueItem.cs
- InsufficientMemoryException.cs
- NamespaceInfo.cs
- RangeValidator.cs
- CodeAssignStatement.cs
- PriorityBinding.cs
- Message.cs
- TabItem.cs
- ParameterBuilder.cs
- XLinq.cs
- DefaultPrintController.cs
- unsafenativemethodsother.cs
- StickyNoteContentControl.cs
- DefaultProxySection.cs
- ToolZone.cs
- ZipIOBlockManager.cs
- SelectionChangedEventArgs.cs
- CheckBox.cs
- LogLogRecordHeader.cs
- PtsHost.cs
- VisualStyleInformation.cs
- SoapHeader.cs
- ValuePattern.cs
- SystemNetworkInterface.cs
- TableCellAutomationPeer.cs
- HierarchicalDataTemplate.cs
- PathSegmentCollection.cs
- CodeSnippetExpression.cs
- ReadOnlyPropertyMetadata.cs
- _TimerThread.cs
- Label.cs
- WCFModelStrings.Designer.cs
- MobileControl.cs
- SqlDataSourceView.cs
- TextDecorations.cs
- ChannelManagerService.cs
- WebZone.cs
- StringValidator.cs
- documentsequencetextview.cs
- UiaCoreTypesApi.cs
- WebPartRestoreVerb.cs
- XmlWhitespace.cs
- FontFamily.cs
- Fonts.cs
- SingleConverter.cs
- ProvidePropertyAttribute.cs
- InternalDispatchObject.cs
- oledbmetadatacolumnnames.cs
- FontUnitConverter.cs
- ReadOnlyDataSource.cs
- TextSegment.cs
- ModifierKeysConverter.cs
- SoapTransportImporter.cs
- FontSource.cs
- SecurityUtils.cs
- TargetException.cs
- TextBlock.cs
- TableTextElementCollectionInternal.cs
- BitmapSource.cs
- SystemColors.cs
- PageOrientation.cs
- Function.cs
- WindowsButton.cs