Code:
/ DotNET / DotNET / 8.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
- RootBuilder.cs
- MatrixAnimationBase.cs
- CompilerHelpers.cs
- ProfilePropertySettingsCollection.cs
- XmlSchemaDocumentation.cs
- SqlServer2KCompatibilityAnnotation.cs
- Int16Converter.cs
- ExpressionPrefixAttribute.cs
- WindowsButton.cs
- CommandLibraryHelper.cs
- XmlNotation.cs
- XmlName.cs
- CodeAttributeDeclaration.cs
- DataGridBeginningEditEventArgs.cs
- DictionaryEntry.cs
- XmlNodeChangedEventArgs.cs
- TreeBuilderXamlTranslator.cs
- WorkflowDesignerMessageFilter.cs
- ModelPropertyImpl.cs
- ExplicitDiscriminatorMap.cs
- LinkUtilities.cs
- ConfigXmlWhitespace.cs
- FieldAccessException.cs
- SoapMessage.cs
- LZCodec.cs
- OperationCanceledException.cs
- StateWorkerRequest.cs
- DocumentApplicationJournalEntry.cs
- Action.cs
- SerializerWriterEventHandlers.cs
- BufferBuilder.cs
- HandlerFactoryWrapper.cs
- ThemeDictionaryExtension.cs
- HttpPostedFile.cs
- HealthMonitoringSectionHelper.cs
- GridViewRow.cs
- HttpModulesSection.cs
- UnknownBitmapDecoder.cs
- DateTimePickerDesigner.cs
- SHA1.cs
- WebReference.cs
- DragEventArgs.cs
- Enlistment.cs
- HandledEventArgs.cs
- TextServicesCompartmentEventSink.cs
- TextSelectionHighlightLayer.cs
- Flattener.cs
- ContractMethodParameterInfo.cs
- SqlCacheDependency.cs
- NumericUpDown.cs
- AnnotationDocumentPaginator.cs
- BinHexEncoding.cs
- MouseGestureConverter.cs
- ExceptionWrapper.cs
- TrustLevelCollection.cs
- ProviderCollection.cs
- WebHeaderCollection.cs
- ByteKeyFrameCollection.cs
- XPathAncestorIterator.cs
- ThicknessAnimationUsingKeyFrames.cs
- PointConverter.cs
- RenderingEventArgs.cs
- ConnectionPoolManager.cs
- ExplicitDiscriminatorMap.cs
- ComponentDispatcher.cs
- ControlValuePropertyAttribute.cs
- FtpCachePolicyElement.cs
- XXXInfos.cs
- PrimitiveType.cs
- PrePrepareMethodAttribute.cs
- CheckBox.cs
- AuthenticationModeHelper.cs
- CompilerCollection.cs
- SiteMapHierarchicalDataSourceView.cs
- String.cs
- MatrixAnimationUsingPath.cs
- ReservationNotFoundException.cs
- HtmlImage.cs
- ExpressionBuilderContext.cs
- TreeView.cs
- PrimitiveXmlSerializers.cs
- GacUtil.cs
- XmlIncludeAttribute.cs
- GZipStream.cs
- TableLayoutSettings.cs
- TTSEngineTypes.cs
- ControlPropertyNameConverter.cs
- TransactionWaitAsyncResult.cs
- ProxyManager.cs
- DesignTimeSiteMapProvider.cs
- CodeRegionDirective.cs
- MulticastDelegate.cs
- TriggerBase.cs
- SqlDependencyUtils.cs
- DecoderNLS.cs
- FaultBookmark.cs
- Vector3DCollection.cs
- HiddenFieldPageStatePersister.cs
- XXXInfos.cs
- Scene3D.cs