Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / AttributeProviderAttribute.cs / 1 / AttributeProviderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")] [AttributeUsage(AttributeTargets.Property)] public class AttributeProviderAttribute : Attribute { private string _typeName; private string _propertyName; ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } _typeName = typeName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName, string propertyName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } if (propertyName == null) { throw new ArgumentNullException("propertyName"); } _typeName = typeName; _propertyName = propertyName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(Type type) { if (type == null) { throw new ArgumentNullException("type"); } _typeName = type.AssemblyQualifiedName; } ////// /// The TypeName property returns the assembly qualified type name /// passed into the constructor. /// public string TypeName { get { return _typeName; } } ////// /// The TypeName property returns the property name that will be used to query attributes from. /// public string PropertyName { get { return _propertyName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")] [AttributeUsage(AttributeTargets.Property)] public class AttributeProviderAttribute : Attribute { private string _typeName; private string _propertyName; ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } _typeName = typeName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(string typeName, string propertyName) { if (typeName == null) { throw new ArgumentNullException("typeName"); } if (propertyName == null) { throw new ArgumentNullException("propertyName"); } _typeName = typeName; _propertyName = propertyName; } ////// /// Creates a new AttributeProviderAttribute object. /// public AttributeProviderAttribute(Type type) { if (type == null) { throw new ArgumentNullException("type"); } _typeName = type.AssemblyQualifiedName; } ////// /// The TypeName property returns the assembly qualified type name /// passed into the constructor. /// public string TypeName { get { return _typeName; } } ////// /// The TypeName property returns the property name that will be used to query attributes from. /// public string PropertyName { get { return _propertyName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceUtility.cs
- SystemTcpConnection.cs
- ContainerControl.cs
- DebugView.cs
- TemplateBindingExpression.cs
- ListContractAdapter.cs
- SoapUnknownHeader.cs
- DocumentViewerHelper.cs
- X509PeerCertificateAuthenticationElement.cs
- ConfigurationElementProperty.cs
- IRCollection.cs
- ParameterCollection.cs
- Duration.cs
- DiscardableAttribute.cs
- OdbcStatementHandle.cs
- InfocardInteractiveChannelInitializer.cs
- GridViewItemAutomationPeer.cs
- DataGridViewMethods.cs
- PaperSource.cs
- WebServiceHostFactory.cs
- OdbcConnectionPoolProviderInfo.cs
- KernelTypeValidation.cs
- XmlTypeAttribute.cs
- CacheChildrenQuery.cs
- ToolboxComponentsCreatedEventArgs.cs
- CalendarDay.cs
- SchemaElementDecl.cs
- StatusBarDrawItemEvent.cs
- ContainerParagraph.cs
- EntityParameter.cs
- SyndicationDeserializer.cs
- PointConverter.cs
- TableRow.cs
- Size3D.cs
- Clause.cs
- LineSegment.cs
- GridViewRowCollection.cs
- IODescriptionAttribute.cs
- RemoteWebConfigurationHost.cs
- Win32Exception.cs
- XmlQualifiedName.cs
- SiteMapNodeItemEventArgs.cs
- StickyNoteAnnotations.cs
- bidPrivateBase.cs
- SamlAction.cs
- Enumerable.cs
- DataGridViewRowEventArgs.cs
- PreviewKeyDownEventArgs.cs
- TransactedBatchingBehavior.cs
- WCFModelStrings.Designer.cs
- UnsafeNativeMethods.cs
- ItemCheckedEvent.cs
- ClientType.cs
- TransformCryptoHandle.cs
- _DisconnectOverlappedAsyncResult.cs
- Table.cs
- WmpBitmapDecoder.cs
- _HeaderInfo.cs
- shaperfactoryquerycacheentry.cs
- CacheForPrimitiveTypes.cs
- HashAlgorithm.cs
- DataBinder.cs
- PrintingPermissionAttribute.cs
- SqlGatherProducedAliases.cs
- remotingproxy.cs
- TypeExtensionSerializer.cs
- ThicknessConverter.cs
- Bezier.cs
- LinqDataView.cs
- AnchoredBlock.cs
- ActivityWithResultWrapper.cs
- CompressionTransform.cs
- Process.cs
- PageRanges.cs
- SafeRegistryHandle.cs
- SqlFacetAttribute.cs
- MetricEntry.cs
- ParentUndoUnit.cs
- EdmProperty.cs
- DataSourceHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- Dump.cs
- HtmlFormAdapter.cs
- UserInitiatedRoutedEventPermission.cs
- MenuItemBindingCollection.cs
- TextSerializer.cs
- Publisher.cs
- DataStreamFromComStream.cs
- UpdateTracker.cs
- AddingNewEventArgs.cs
- Section.cs
- latinshape.cs
- ErrorStyle.cs
- SecurityContext.cs
- ToolStripDropDown.cs
- PageAsyncTask.cs
- SpellerHighlightLayer.cs
- FontFamily.cs
- ValidationPropertyAttribute.cs
- IisTraceListener.cs