Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AttributeProviderAttribute.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- wmiprovider.cs
- SQLMoney.cs
- DateTimeFormatInfo.cs
- SelectionEditor.cs
- XmlComment.cs
- LingerOption.cs
- CapabilitiesAssignment.cs
- SharedStatics.cs
- XdrBuilder.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SortDescriptionCollection.cs
- EntitySqlException.cs
- XmlHierarchyData.cs
- AppliesToBehaviorDecisionTable.cs
- StoreItemCollection.Loader.cs
- ListViewItem.cs
- AttributeData.cs
- RadioButtonList.cs
- XmlKeywords.cs
- HttpCachePolicyElement.cs
- LinkLabelLinkClickedEvent.cs
- COMException.cs
- CopyNamespacesAction.cs
- HttpCapabilitiesBase.cs
- ExclusiveNamedPipeTransportManager.cs
- Substitution.cs
- CommandHelpers.cs
- WebPartDeleteVerb.cs
- DynamicEntity.cs
- BindingListCollectionView.cs
- WebColorConverter.cs
- ExpressionsCollectionEditor.cs
- DesignTimeVisibleAttribute.cs
- Model3DCollection.cs
- DataSourceCacheDurationConverter.cs
- AnimationTimeline.cs
- GridEntryCollection.cs
- BitmapInitialize.cs
- IgnoreSection.cs
- InputProcessorProfilesLoader.cs
- TemplateXamlParser.cs
- LocalBuilder.cs
- LoginCancelEventArgs.cs
- FileClassifier.cs
- OracleTransaction.cs
- PreparingEnlistment.cs
- PersonalizableAttribute.cs
- ViewManagerAttribute.cs
- UrlPropertyAttribute.cs
- AuthenticationSection.cs
- EntityCommand.cs
- ServiceDesigner.xaml.cs
- Match.cs
- NetTcpSecurity.cs
- PenLineCapValidation.cs
- XmlSchemaSequence.cs
- RemotingConfigParser.cs
- XmlWrappingWriter.cs
- AnimationTimeline.cs
- MetadataCache.cs
- SBCSCodePageEncoding.cs
- GridViewPageEventArgs.cs
- UrlPath.cs
- PerspectiveCamera.cs
- ImportContext.cs
- NavigationProgressEventArgs.cs
- ScrollProperties.cs
- HtmlTableRowCollection.cs
- MtomMessageEncoder.cs
- SiteMapDataSource.cs
- Matrix3D.cs
- SessionStateSection.cs
- StringAttributeCollection.cs
- NonBatchDirectoryCompiler.cs
- CompositeCollectionView.cs
- EndpointDiscoveryBehavior.cs
- EventProviderClassic.cs
- RTLAwareMessageBox.cs
- XsdDateTime.cs
- PropertyCollection.cs
- WebPartUtil.cs
- IntSecurity.cs
- Quad.cs
- EncoderExceptionFallback.cs
- KeyedCollection.cs
- DBConcurrencyException.cs
- TextEffect.cs
- TextSelection.cs
- SignatureResourcePool.cs
- XamlToRtfWriter.cs
- SqlTransaction.cs
- ProcessHost.cs
- DeleteCardRequest.cs
- CodeEventReferenceExpression.cs
- SqlBuffer.cs
- DataBindingCollection.cs
- XmlSchemaValidator.cs
- PasswordTextContainer.cs
- Typeface.cs
- Registration.cs