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
- GeneralTransform3DGroup.cs
- ProfileService.cs
- CompilerCollection.cs
- XmlSubtreeReader.cs
- PublishLicense.cs
- OracleConnectionStringBuilder.cs
- Rect3D.cs
- XPathParser.cs
- ExpandSegment.cs
- BooleanKeyFrameCollection.cs
- ConversionContext.cs
- SafeThemeHandle.cs
- ProgressBarHighlightConverter.cs
- ClientBuildManager.cs
- MenuItemBinding.cs
- FamilyMap.cs
- Win32Interop.cs
- RepeatInfo.cs
- HwndStylusInputProvider.cs
- ConnectionManager.cs
- SqlUtil.cs
- dataobject.cs
- SpoolingTaskBase.cs
- WorkflowControlClient.cs
- SqlExpander.cs
- ServicePointManagerElement.cs
- Page.cs
- AvTrace.cs
- ConnectionProviderAttribute.cs
- MemberCollection.cs
- HttpResponseHeader.cs
- CodePrimitiveExpression.cs
- HttpResponseWrapper.cs
- LicFileLicenseProvider.cs
- ExpandedWrapper.cs
- SortDescriptionCollection.cs
- SelectionWordBreaker.cs
- ReferenceConverter.cs
- DSACryptoServiceProvider.cs
- MobileSysDescriptionAttribute.cs
- dbenumerator.cs
- ManagementObjectCollection.cs
- PKCS1MaskGenerationMethod.cs
- ClockController.cs
- SectionUpdates.cs
- NestPullup.cs
- ResourceReferenceExpression.cs
- CellTreeNode.cs
- TailCallAnalyzer.cs
- MultiPropertyDescriptorGridEntry.cs
- ProxyGenerator.cs
- StrokeRenderer.cs
- KeyboardEventArgs.cs
- UriTemplateTrieNode.cs
- AuthenticationException.cs
- AppDomainInstanceProvider.cs
- SchemaObjectWriter.cs
- TableLayoutSettings.cs
- XmlToDatasetMap.cs
- TreeView.cs
- InheritanceContextChangedEventManager.cs
- CompositeDataBoundControl.cs
- securestring.cs
- ReadWriteSpinLock.cs
- DataGridTable.cs
- NotCondition.cs
- FunctionQuery.cs
- XPathDocumentNavigator.cs
- NativeMethods.cs
- ButtonColumn.cs
- ColorComboBox.cs
- Source.cs
- AtomServiceDocumentSerializer.cs
- Point3D.cs
- GetWinFXPath.cs
- ProfileGroupSettings.cs
- _FtpControlStream.cs
- _TLSstream.cs
- Filter.cs
- ExceptionTranslationTable.cs
- StoreAnnotationsMap.cs
- WeakReadOnlyCollection.cs
- __Filters.cs
- DataObjectCopyingEventArgs.cs
- ValidatorUtils.cs
- EntityUtil.cs
- Application.cs
- CompositeScriptReference.cs
- IPPacketInformation.cs
- DbInsertCommandTree.cs
- RepeatBehaviorConverter.cs
- ScriptReferenceEventArgs.cs
- FullTextLine.cs
- SizeF.cs
- ToolboxItem.cs
- DiagnosticsConfiguration.cs
- log.cs
- ContractsBCL.cs
- HostedImpersonationContext.cs
- Pair.cs