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
- BamlTreeNode.cs
- objectresult_tresulttype.cs
- KeyValuePairs.cs
- XmlDataFileEditor.cs
- Model3DGroup.cs
- TdsParserSessionPool.cs
- EastAsianLunisolarCalendar.cs
- ConfigXmlComment.cs
- PagePropertiesChangingEventArgs.cs
- ConfigXmlCDataSection.cs
- BindingWorker.cs
- WebPartsPersonalization.cs
- ProcessModuleCollection.cs
- HtmlForm.cs
- DataGridSortCommandEventArgs.cs
- XsdCachingReader.cs
- ReflectionUtil.cs
- JapaneseCalendar.cs
- _DisconnectOverlappedAsyncResult.cs
- AudioBase.cs
- SqlUserDefinedTypeAttribute.cs
- BitmapPalettes.cs
- RtfControls.cs
- ServiceManager.cs
- EmbeddedMailObjectsCollection.cs
- ValidationSummaryDesigner.cs
- ProfileGroupSettings.cs
- QueryOpeningEnumerator.cs
- DataReaderContainer.cs
- SystemColorTracker.cs
- IResourceProvider.cs
- XmlAnyElementAttribute.cs
- ImageButton.cs
- metadatamappinghashervisitor.cs
- ADConnectionHelper.cs
- RsaSecurityToken.cs
- ServiceHttpModule.cs
- OleDbStruct.cs
- EnumValAlphaComparer.cs
- BaseParser.cs
- ParallelTimeline.cs
- SettingsSavedEventArgs.cs
- ParserContext.cs
- DockProviderWrapper.cs
- OleDbCommand.cs
- CapabilitiesSection.cs
- ContextDataSourceView.cs
- ConfigXmlComment.cs
- WmpBitmapDecoder.cs
- ObjectDataSourceView.cs
- TextCollapsingProperties.cs
- SafeRightsManagementQueryHandle.cs
- SqlFactory.cs
- _CommandStream.cs
- UTF8Encoding.cs
- RequestSecurityTokenResponse.cs
- XPathDocument.cs
- CheckedListBox.cs
- TableChangeProcessor.cs
- Transform.cs
- ComplexTypeEmitter.cs
- XamlTemplateSerializer.cs
- BinaryObjectWriter.cs
- QilIterator.cs
- DesignerCalendarAdapter.cs
- ActiveDesignSurfaceEvent.cs
- LocalizableAttribute.cs
- ClientOperation.cs
- MemberProjectionIndex.cs
- ComplexPropertyEntry.cs
- CompiledRegexRunnerFactory.cs
- ScriptControl.cs
- SqlDataSourceStatusEventArgs.cs
- UnionCqlBlock.cs
- FileDialog_Vista_Interop.cs
- PropertyDescriptorComparer.cs
- BasePattern.cs
- DockAndAnchorLayout.cs
- propertytag.cs
- ExpressionBuilder.cs
- processwaithandle.cs
- PropertyMappingExceptionEventArgs.cs
- XmlDesigner.cs
- WebRequestModuleElementCollection.cs
- Stack.cs
- SiteMapPath.cs
- ServiceContractAttribute.cs
- CheckBoxList.cs
- ConnectionStringSettings.cs
- XPathMultyIterator.cs
- BulletedList.cs
- SimpleParser.cs
- BrowserDefinition.cs
- GradientStop.cs
- DataGridPagerStyle.cs
- SqlUserDefinedTypeAttribute.cs
- PresentationTraceSources.cs
- GeometryHitTestParameters.cs
- TextClipboardData.cs
- SrgsRulesCollection.cs