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
- NetworkCredential.cs
- DispatcherObject.cs
- EncryptedKeyIdentifierClause.cs
- TreeView.cs
- DbConnectionPoolCounters.cs
- ImageAnimator.cs
- TextRange.cs
- TreeView.cs
- AlgoModule.cs
- DoubleAnimation.cs
- XmlUtil.cs
- PartitionerStatic.cs
- ApplyHostConfigurationBehavior.cs
- QilScopedVisitor.cs
- MULTI_QI.cs
- PermissionListSet.cs
- Cursor.cs
- DomainConstraint.cs
- XmlDataSource.cs
- CodeTypeDeclarationCollection.cs
- InternalControlCollection.cs
- Control.cs
- QueryStringParameter.cs
- FormViewRow.cs
- SafeTokenHandle.cs
- NameValueCollection.cs
- SizeValueSerializer.cs
- Bitmap.cs
- EntityDataSourceQueryBuilder.cs
- Activation.cs
- SpecialFolderEnumConverter.cs
- Size.cs
- DEREncoding.cs
- TcpChannelHelper.cs
- WorkerProcess.cs
- WebPartsPersonalizationAuthorization.cs
- XmlText.cs
- HandledMouseEvent.cs
- Base64Decoder.cs
- DesignTimeType.cs
- AppDomainInfo.cs
- CachedTypeface.cs
- ValuePattern.cs
- CodeTypeDeclaration.cs
- ProtocolElementCollection.cs
- ScrollableControlDesigner.cs
- DataGridViewAddColumnDialog.cs
- PageRanges.cs
- ServerValidateEventArgs.cs
- OrderToken.cs
- ThreadNeutralSemaphore.cs
- TreeNodeStyle.cs
- ClientCredentials.cs
- ObjectListShowCommandsEventArgs.cs
- CodeValidator.cs
- UTF8Encoding.cs
- PnrpPermission.cs
- WebHttpSecurity.cs
- DebuggerAttributes.cs
- DataServiceQueryException.cs
- DesignTimeData.cs
- VectorAnimation.cs
- TemplatedWizardStep.cs
- XmlSchemaComplexType.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SoapRpcServiceAttribute.cs
- ActivityCodeDomSerializer.cs
- XmlSchemaCollection.cs
- RefreshPropertiesAttribute.cs
- Rect3D.cs
- IPAddressCollection.cs
- CollectionView.cs
- TypeConverterHelper.cs
- PrivilegedConfigurationManager.cs
- OperatingSystem.cs
- VisualStyleElement.cs
- RuntimeIdentifierPropertyAttribute.cs
- BindingManagerDataErrorEventArgs.cs
- Rotation3D.cs
- GridViewSortEventArgs.cs
- ContentOperations.cs
- UnsafeNetInfoNativeMethods.cs
- EventPropertyMap.cs
- GPStream.cs
- DetailsViewDeleteEventArgs.cs
- AssemblyBuilderData.cs
- LinqDataSourceValidationException.cs
- WeakReadOnlyCollection.cs
- Soap12ServerProtocol.cs
- TreeNodeStyleCollectionEditor.cs
- FunctionMappingTranslator.cs
- RotationValidation.cs
- OrderedDictionaryStateHelper.cs
- MasterPage.cs
- FillErrorEventArgs.cs
- PerspectiveCamera.cs
- WindowsListBox.cs
- GraphicsContainer.cs
- IPPacketInformation.cs
- GeneralTransform3D.cs