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
- DataGridViewSelectedCellCollection.cs
- BaseCodePageEncoding.cs
- COAUTHIDENTITY.cs
- OleTxTransaction.cs
- PropertyGeneratedEventArgs.cs
- HttpClientChannel.cs
- SurrogateChar.cs
- MenuRendererStandards.cs
- HiddenFieldPageStatePersister.cs
- _OSSOCK.cs
- EncryptedHeader.cs
- GraphicsPathIterator.cs
- QualificationDataItem.cs
- GridViewItemAutomationPeer.cs
- PartialTrustVisibleAssemblyCollection.cs
- StrongNameHelpers.cs
- OleDbRowUpdatingEvent.cs
- SqlDeflator.cs
- ProfileSection.cs
- ComNativeDescriptor.cs
- CertificateManager.cs
- MiniParameterInfo.cs
- CompilerWrapper.cs
- BuiltInExpr.cs
- XPathCompileException.cs
- ActivityValidator.cs
- httpapplicationstate.cs
- SupportsPreviewControlAttribute.cs
- SoapTypeAttribute.cs
- FieldToken.cs
- OneOf.cs
- BatchWriter.cs
- WeakReferenceList.cs
- Publisher.cs
- WorkItem.cs
- PageClientProxyGenerator.cs
- InvalidateEvent.cs
- COM2Properties.cs
- MultipleViewPatternIdentifiers.cs
- RadialGradientBrush.cs
- Profiler.cs
- TreeNodeCollection.cs
- QilXmlReader.cs
- ProtectedUri.cs
- FileStream.cs
- SizeAnimationUsingKeyFrames.cs
- WorkflowTransactionService.cs
- XmlSerializerFactory.cs
- TreeBuilderXamlTranslator.cs
- TextRunTypographyProperties.cs
- LineMetrics.cs
- ApplicationSettingsBase.cs
- CodeBinaryOperatorExpression.cs
- RSACryptoServiceProvider.cs
- SafeProcessHandle.cs
- FileSystemEnumerable.cs
- DataGridItemCollection.cs
- Rijndael.cs
- AsymmetricSignatureFormatter.cs
- FillErrorEventArgs.cs
- DataControlButton.cs
- AppSettingsExpressionBuilder.cs
- OperationInvokerTrace.cs
- RedirectionProxy.cs
- MaterialCollection.cs
- WsdlInspector.cs
- Registry.cs
- ResourceReferenceExpression.cs
- GridViewHeaderRowPresenter.cs
- CryptoStream.cs
- UpDownEvent.cs
- HttpException.cs
- LongPath.cs
- TemplateControlParser.cs
- EdmFunctionAttribute.cs
- NullableConverter.cs
- TeredoHelper.cs
- DesignerActionTextItem.cs
- EnvironmentPermission.cs
- AutomationPatternInfo.cs
- TreeNodeStyleCollection.cs
- TypeHelpers.cs
- Slider.cs
- TextServicesCompartmentEventSink.cs
- MdImport.cs
- HiddenField.cs
- DataGridRowAutomationPeer.cs
- httpstaticobjectscollection.cs
- QilFunction.cs
- Tokenizer.cs
- SqlMethods.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DataList.cs
- SharedConnectionInfo.cs
- ForEach.cs
- HttpAsyncResult.cs
- ItemCheckedEvent.cs
- TextTreeRootNode.cs
- WinFormsComponentEditor.cs
- X509ChainPolicy.cs