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
- CacheVirtualItemsEvent.cs
- RunInstallerAttribute.cs
- UnescapedXmlDiagnosticData.cs
- ImageClickEventArgs.cs
- NavigationProgressEventArgs.cs
- TextEffect.cs
- CatalogPart.cs
- SvcMapFileSerializer.cs
- ControlParameter.cs
- AudioSignalProblemOccurredEventArgs.cs
- ParseElement.cs
- UInt32Converter.cs
- SecurityContext.cs
- NavigatorInput.cs
- HandledMouseEvent.cs
- XmlSchemaParticle.cs
- AlphabeticalEnumConverter.cs
- DataGrid.cs
- SqlBulkCopyColumnMappingCollection.cs
- DesignerWebPartChrome.cs
- ConnectionPoolManager.cs
- StringFunctions.cs
- TranslateTransform3D.cs
- ZipArchive.cs
- ResourceWriter.cs
- TemplateColumn.cs
- ListMarkerLine.cs
- ComEventsSink.cs
- SqlMetaData.cs
- InternalControlCollection.cs
- _Rfc2616CacheValidators.cs
- TimeManager.cs
- StreamInfo.cs
- SamlSubjectStatement.cs
- ProvidersHelper.cs
- DataRelationCollection.cs
- RenderData.cs
- infer.cs
- ArrayConverter.cs
- GetUserPreferenceRequest.cs
- EmulateRecognizeCompletedEventArgs.cs
- PerspectiveCamera.cs
- ListParagraph.cs
- ListenerHandler.cs
- HtmlFormWrapper.cs
- CodeBlockBuilder.cs
- _DomainName.cs
- CompensatableTransactionScopeActivityDesigner.cs
- _WinHttpWebProxyDataBuilder.cs
- WebUtil.cs
- WebPartEditVerb.cs
- IChannel.cs
- GridViewAutomationPeer.cs
- RegionInfo.cs
- Int32Animation.cs
- ObjectDataSourceChooseMethodsPanel.cs
- Viewport3DVisual.cs
- PropertyMapper.cs
- ProfileGroupSettingsCollection.cs
- FocusTracker.cs
- JoinTreeSlot.cs
- DateTimeFormatInfoScanner.cs
- TrackingProfileDeserializationException.cs
- DocumentViewerHelper.cs
- AnnotationComponentManager.cs
- DataGridViewButtonCell.cs
- VoiceSynthesis.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- ProtectedConfigurationSection.cs
- BuildResultCache.cs
- _OverlappedAsyncResult.cs
- SimpleHandlerBuildProvider.cs
- BuilderElements.cs
- ErrorsHelper.cs
- CommandArguments.cs
- DirectoryObjectSecurity.cs
- SafeRightsManagementSessionHandle.cs
- KnownTypesProvider.cs
- Pkcs7Recipient.cs
- QilBinary.cs
- QfeChecker.cs
- ResourceDictionary.cs
- Metafile.cs
- FileDialogCustomPlacesCollection.cs
- CTreeGenerator.cs
- InputScopeConverter.cs
- ProcessModelSection.cs
- TransformerTypeCollection.cs
- IdentityNotMappedException.cs
- DBSchemaTable.cs
- ToolStripDropTargetManager.cs
- XmlSchemaProviderAttribute.cs
- ColumnCollection.cs
- WindowsGrip.cs
- FixedSOMFixedBlock.cs
- View.cs
- SelectedGridItemChangedEvent.cs
- AddInDeploymentState.cs
- RotateTransform.cs
- MouseActionConverter.cs