Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ComplexBindingPropertiesAttribute.cs / 1305376 / 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. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StorageEntityContainerMapping.cs
- OracleNumber.cs
- FollowerQueueCreator.cs
- WindowsRichEdit.cs
- DocumentReferenceCollection.cs
- Expression.cs
- GeneralTransform.cs
- Dictionary.cs
- StandardTransformFactory.cs
- WindowsListViewItemCheckBox.cs
- Conditional.cs
- FixUp.cs
- SignerInfo.cs
- CodeValidator.cs
- SqlDataAdapter.cs
- DateRangeEvent.cs
- ModifiableIteratorCollection.cs
- AssertSection.cs
- AdCreatedEventArgs.cs
- IdleTimeoutMonitor.cs
- OutputCacheModule.cs
- AuthenticatedStream.cs
- ConfigXmlCDataSection.cs
- DBConnection.cs
- NotifyInputEventArgs.cs
- JournalEntryStack.cs
- MetadataItemEmitter.cs
- ImmutableAssemblyCacheEntry.cs
- WebRequest.cs
- Compilation.cs
- UserInitiatedNavigationPermission.cs
- HelpEvent.cs
- SizeConverter.cs
- SoapHeaderAttribute.cs
- PropertySegmentSerializationProvider.cs
- ItemDragEvent.cs
- DataProviderNameConverter.cs
- BinaryFormatterWriter.cs
- SignedPkcs7.cs
- TaiwanCalendar.cs
- TextProperties.cs
- EventMappingSettings.cs
- DbConnectionPoolIdentity.cs
- Point3DKeyFrameCollection.cs
- ProtectedConfigurationSection.cs
- FixedSOMPage.cs
- DocumentEventArgs.cs
- ConditionCollection.cs
- ParamArrayAttribute.cs
- ValueTable.cs
- SamlAction.cs
- EndpointAddressAugust2004.cs
- TemplatePartAttribute.cs
- WorkItem.cs
- TableCell.cs
- X509Certificate.cs
- SEHException.cs
- RouteUrlExpressionBuilder.cs
- ConfigXmlDocument.cs
- InternalTypeHelper.cs
- DtrList.cs
- SafeMemoryMappedFileHandle.cs
- PrinterResolution.cs
- MetafileHeaderWmf.cs
- DetailsViewModeEventArgs.cs
- ObjectContextServiceProvider.cs
- UnsafeNetInfoNativeMethods.cs
- WebBrowserHelper.cs
- SmtpFailedRecipientsException.cs
- _ChunkParse.cs
- WebPartMinimizeVerb.cs
- HttpProfileGroupBase.cs
- DbConnectionStringBuilder.cs
- PointLightBase.cs
- FrameworkTemplate.cs
- InputMethodStateTypeInfo.cs
- DriveNotFoundException.cs
- keycontainerpermission.cs
- XLinq.cs
- MergeFailedEvent.cs
- HttpBindingExtension.cs
- CodeDOMUtility.cs
- InstanceOwnerException.cs
- RelationshipEndCollection.cs
- WindowsSysHeader.cs
- FileEnumerator.cs
- HttpModuleActionCollection.cs
- LocalValueEnumerator.cs
- SettingsSection.cs
- MenuItemStyleCollection.cs
- StreamGeometry.cs
- HandleExceptionArgs.cs
- ArrayWithOffset.cs
- StateMachineWorkflow.cs
- ScriptingScriptResourceHandlerSection.cs
- ToolboxBitmapAttribute.cs
- Margins.cs
- ImageButton.cs
- FontInfo.cs
- FirstMatchCodeGroup.cs