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
- CapabilitiesUse.cs
- ToolStripItemEventArgs.cs
- PriorityRange.cs
- BinaryExpression.cs
- StyleModeStack.cs
- WMIGenerator.cs
- Verify.cs
- MsmqHostedTransportManager.cs
- ServiceChannelFactory.cs
- objectresult_tresulttype.cs
- UriWriter.cs
- ColumnResizeUndoUnit.cs
- PropertyChangeTracker.cs
- TextSpan.cs
- ASCIIEncoding.cs
- ArgumentDesigner.xaml.cs
- StorageScalarPropertyMapping.cs
- XPathNodeList.cs
- TableLayoutCellPaintEventArgs.cs
- CustomTypeDescriptor.cs
- StickyNote.cs
- TextServicesCompartment.cs
- EntityRecordInfo.cs
- SequenceDesigner.xaml.cs
- CounterCreationData.cs
- WebPartEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- StyleModeStack.cs
- ScriptBehaviorDescriptor.cs
- ClosureBinding.cs
- StyleTypedPropertyAttribute.cs
- PackageRelationship.cs
- SrgsText.cs
- autovalidator.cs
- EventlogProvider.cs
- XD.cs
- FactoryRecord.cs
- XmlnsCache.cs
- XmlSchemaComplexContent.cs
- Msec.cs
- CompoundFileReference.cs
- WinEventHandler.cs
- BamlRecordHelper.cs
- TabControlEvent.cs
- SQLBoolean.cs
- IProducerConsumerCollection.cs
- DataGridPageChangedEventArgs.cs
- ColorMap.cs
- BigInt.cs
- KeyEvent.cs
- DataBindingCollection.cs
- XmlExtensionFunction.cs
- HMAC.cs
- AlignmentYValidation.cs
- SspiSecurityTokenParameters.cs
- StreamGeometry.cs
- VoiceObjectToken.cs
- ContractComponent.cs
- XmlnsPrefixAttribute.cs
- TextDecorationUnitValidation.cs
- UniqueIdentifierService.cs
- NetSectionGroup.cs
- Int64AnimationBase.cs
- TextRenderingModeValidation.cs
- SQLInt16Storage.cs
- GuidelineSet.cs
- TabItem.cs
- SspiSecurityTokenParameters.cs
- ChannelSettingsElement.cs
- Configuration.cs
- OracleMonthSpan.cs
- UnsafeNativeMethods.cs
- TextRangeAdaptor.cs
- RangeValuePattern.cs
- AncillaryOps.cs
- Parameter.cs
- DefaultObjectMappingItemCollection.cs
- D3DImage.cs
- ResourcePermissionBase.cs
- ApplicationId.cs
- TimelineCollection.cs
- OSEnvironmentHelper.cs
- XmlWhitespace.cs
- WindowsStreamSecurityUpgradeProvider.cs
- xmlglyphRunInfo.cs
- ImageFormat.cs
- CodeTypeMember.cs
- SerializationStore.cs
- EntityDataSourceMemberPath.cs
- SmtpNegotiateAuthenticationModule.cs
- IdentifierService.cs
- SequenceNumber.cs
- XmlNamespaceManager.cs
- WorkflowServiceHost.cs
- GenericTypeParameterBuilder.cs
- XmlNode.cs
- DBSchemaTable.cs
- ModulesEntry.cs
- MetadataElement.cs
- DataBoundControlDesigner.cs