Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MasterPageCodeDomTreeGenerator.cs
- ArgumentNullException.cs
- DockingAttribute.cs
- XmlCustomFormatter.cs
- KeyTimeConverter.cs
- BooleanFunctions.cs
- SafeProcessHandle.cs
- AttachedAnnotation.cs
- Mutex.cs
- AlgoModule.cs
- RoutedPropertyChangedEventArgs.cs
- ServerIdentity.cs
- SqlStream.cs
- MetadataPropertyCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StorageEntityTypeMapping.cs
- TreeViewHitTestInfo.cs
- DialogWindow.cs
- RegexRunner.cs
- StringUtil.cs
- DrawListViewColumnHeaderEventArgs.cs
- QueryServiceConfigHandle.cs
- EditorAttribute.cs
- SoapTypeAttribute.cs
- BitmapMetadataBlob.cs
- DataPagerFieldItem.cs
- pingexception.cs
- DynamicUpdateCommand.cs
- WindowsStatic.cs
- ImageAttributes.cs
- httpstaticobjectscollection.cs
- DataGridViewComponentPropertyGridSite.cs
- SiblingIterators.cs
- DeferredTextReference.cs
- HtmlButton.cs
- TraversalRequest.cs
- BaseValidator.cs
- CodeLinePragma.cs
- DCSafeHandle.cs
- SqlCacheDependencySection.cs
- CodeParameterDeclarationExpressionCollection.cs
- control.ime.cs
- XmlReflectionMember.cs
- BamlRecordReader.cs
- MetadataProperty.cs
- InstanceValue.cs
- CollectionView.cs
- NotificationContext.cs
- InstanceData.cs
- datacache.cs
- HtmlLink.cs
- HostingPreferredMapPath.cs
- CultureSpecificCharacterBufferRange.cs
- TextRenderer.cs
- RightsManagementEncryptedStream.cs
- StandardOleMarshalObject.cs
- EntityDataSourceEntityTypeFilterItem.cs
- OleDbException.cs
- UseAttributeSetsAction.cs
- DataShape.cs
- TrustLevelCollection.cs
- DataServiceStreamProviderWrapper.cs
- DataGridViewColumnConverter.cs
- commandenforcer.cs
- EnvelopedPkcs7.cs
- ComplexType.cs
- FlowPosition.cs
- PackWebRequest.cs
- BitmapEffectCollection.cs
- Peer.cs
- UnsafeNativeMethodsTablet.cs
- UIElement.cs
- DeadCharTextComposition.cs
- AccessViolationException.cs
- WizardPanelChangingEventArgs.cs
- EnumConverter.cs
- RegexMatchCollection.cs
- WebPartHeaderCloseVerb.cs
- SystemInformation.cs
- DbgCompiler.cs
- ObjectDataSourceFilteringEventArgs.cs
- TimeoutConverter.cs
- TemplateBindingExtensionConverter.cs
- SchemaDeclBase.cs
- AccessDataSourceView.cs
- WorkflowDesigner.cs
- AsyncResult.cs
- RtfToken.cs
- HMACSHA256.cs
- Ticks.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PagerSettings.cs
- _AutoWebProxyScriptWrapper.cs
- ComNativeDescriptor.cs
- Effect.cs
- ServiceDescriptionReflector.cs
- TextControl.cs
- LifetimeServices.cs
- ErrorEventArgs.cs
- BindingListCollectionView.cs