Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // 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
- TypedTableBaseExtensions.cs
- SectionVisual.cs
- XmlRawWriter.cs
- TypeDescriptorFilterService.cs
- RefreshEventArgs.cs
- SynchronousChannel.cs
- RotateTransform.cs
- SrgsToken.cs
- ManipulationDevice.cs
- BindingGroup.cs
- DeviceFilterEditorDialog.cs
- RawStylusActions.cs
- HttpDictionary.cs
- SiteMapHierarchicalDataSourceView.cs
- EnumConverter.cs
- FormatSelectingMessageInspector.cs
- BamlWriter.cs
- ProfilePropertyMetadata.cs
- PinnedBufferMemoryStream.cs
- NativeCppClassAttribute.cs
- HandlerFactoryCache.cs
- StringStorage.cs
- ParameterToken.cs
- OracleConnection.cs
- XmlRawWriter.cs
- _HelperAsyncResults.cs
- securitycriticaldataformultiplegetandset.cs
- DispatcherEventArgs.cs
- GZipDecoder.cs
- Cursors.cs
- ColumnHeader.cs
- StorageEntityTypeMapping.cs
- LineGeometry.cs
- SpeechDetectedEventArgs.cs
- IteratorDescriptor.cs
- AuthenticationService.cs
- EmbossBitmapEffect.cs
- SiteOfOriginContainer.cs
- PagePropertiesChangingEventArgs.cs
- CodeSpit.cs
- StyleXamlParser.cs
- PlatformNotSupportedException.cs
- ApplicationManager.cs
- NetworkInterface.cs
- TaskFormBase.cs
- MatchAttribute.cs
- WorkflowOperationInvoker.cs
- Timeline.cs
- LinearGradientBrush.cs
- GenericWebPart.cs
- VisualStateManager.cs
- WebPartEditorOkVerb.cs
- BindingExpressionBase.cs
- MimeMapping.cs
- Image.cs
- RealizationContext.cs
- MailDefinition.cs
- EditorAttributeInfo.cs
- StreamGeometry.cs
- XmlCodeExporter.cs
- IntegerValidator.cs
- TypeContext.cs
- SerializationStore.cs
- CqlParserHelpers.cs
- BoundingRectTracker.cs
- RelationHandler.cs
- _BasicClient.cs
- DateTimeOffsetConverter.cs
- NotifyParentPropertyAttribute.cs
- ViewLoader.cs
- Pts.cs
- WaitHandle.cs
- WebPartVerbsEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- ProxyHwnd.cs
- ColorTranslator.cs
- DataIdProcessor.cs
- ContentPlaceHolder.cs
- MatrixAnimationBase.cs
- ButtonBase.cs
- cookiecontainer.cs
- XPathCompiler.cs
- RoutingExtensionElement.cs
- XmlSchemaObjectCollection.cs
- Point.cs
- DataGridViewLayoutData.cs
- MessageSecurityOverMsmqElement.cs
- CaseInsensitiveComparer.cs
- DateTimeFormatInfoScanner.cs
- DrawingContext.cs
- ResourceCategoryAttribute.cs
- XmlReflectionMember.cs
- AutomationPropertyInfo.cs
- RoutedEvent.cs
- XmlIncludeAttribute.cs
- FileDialogCustomPlaces.cs
- CompositionAdorner.cs
- MultiAsyncResult.cs
- Rotation3D.cs
- ComplexType.cs