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
- GridViewRow.cs
- RijndaelManagedTransform.cs
- DocumentScope.cs
- PeerTransportListenAddressValidator.cs
- StoreContentChangedEventArgs.cs
- DependencyPropertyValueSerializer.cs
- GifBitmapDecoder.cs
- MemberAccessException.cs
- HttpCacheParams.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TagMapCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- ResourceSetExpression.cs
- GraphicsPathIterator.cs
- Scheduler.cs
- DoubleAnimationBase.cs
- PageDeviceFont.cs
- ProjectionCamera.cs
- XmlNullResolver.cs
- TraceHandlerErrorFormatter.cs
- Solver.cs
- RangeEnumerable.cs
- UrlMappingsModule.cs
- XmlQualifiedNameTest.cs
- ResourceIDHelper.cs
- MulticastOption.cs
- WindowsTokenRoleProvider.cs
- RewritingProcessor.cs
- DataGridSortingEventArgs.cs
- DataSourceBooleanViewSchemaConverter.cs
- SerialStream.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- StrokeDescriptor.cs
- XmlSchemaElement.cs
- CroppedBitmap.cs
- Int64KeyFrameCollection.cs
- ProgressBarRenderer.cs
- WorkflowView.cs
- Rect3D.cs
- NativeMethods.cs
- DynamicDataRouteHandler.cs
- DataGridViewSelectedColumnCollection.cs
- RegexStringValidatorAttribute.cs
- CodeParameterDeclarationExpressionCollection.cs
- ValidateNames.cs
- WpfWebRequestHelper.cs
- RenderDataDrawingContext.cs
- GraphicsPath.cs
- ScriptResourceInfo.cs
- StandardCommandToolStripMenuItem.cs
- XmlWriterTraceListener.cs
- WinFormsComponentEditor.cs
- FilteredDataSetHelper.cs
- X509UI.cs
- NumberFormatInfo.cs
- DeploymentExceptionMapper.cs
- WbemException.cs
- WebScriptClientGenerator.cs
- MetadataItemEmitter.cs
- CodePageEncoding.cs
- RegexStringValidatorAttribute.cs
- ASCIIEncoding.cs
- GridViewRow.cs
- Win32PrintDialog.cs
- Memoizer.cs
- DataBindingHandlerAttribute.cs
- MaskedTextBox.cs
- DataSourceViewSchemaConverter.cs
- FontStretches.cs
- InternalSafeNativeMethods.cs
- HostedHttpRequestAsyncResult.cs
- DbProviderFactoriesConfigurationHandler.cs
- parserscommon.cs
- GcSettings.cs
- SafePointer.cs
- ColumnResizeUndoUnit.cs
- PanelStyle.cs
- XmlIterators.cs
- ProfilePropertySettings.cs
- DiscoveryOperationContextExtension.cs
- SID.cs
- NetCodeGroup.cs
- SqlCacheDependencyDatabaseCollection.cs
- SolidBrush.cs
- ColumnBinding.cs
- MarkupObject.cs
- DbParameterCollectionHelper.cs
- PropertyCondition.cs
- BuildProviderUtils.cs
- Number.cs
- Tuple.cs
- ListView.cs
- ProcessStartInfo.cs
- UmAlQuraCalendar.cs
- OdbcConnectionOpen.cs
- ChtmlImageAdapter.cs
- VisualStyleElement.cs
- UserUseLicenseDictionaryLoader.cs
- TrackingMemoryStreamFactory.cs
- QueryOutputWriter.cs