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
- RequestCacheValidator.cs
- IPCCacheManager.cs
- FixedTextContainer.cs
- NodeFunctions.cs
- DecimalAnimation.cs
- EventSchemaTraceListener.cs
- OdbcErrorCollection.cs
- RegistrySecurity.cs
- HttpModuleAction.cs
- Logging.cs
- FieldDescriptor.cs
- DataExpression.cs
- UserControl.cs
- ZipIOExtraFieldElement.cs
- dataobject.cs
- HttpContext.cs
- Helpers.cs
- PolyBezierSegment.cs
- ForEachAction.cs
- sqlpipe.cs
- IsolatedStorageFileStream.cs
- RequestBringIntoViewEventArgs.cs
- ObjectDataSourceEventArgs.cs
- XmlSerializationWriter.cs
- XmlnsDictionary.cs
- SessionEndingCancelEventArgs.cs
- FactoryId.cs
- ValidationVisibilityAttribute.cs
- NewExpression.cs
- Setter.cs
- FastPropertyAccessor.cs
- AbsoluteQuery.cs
- BasicExpressionVisitor.cs
- COAUTHINFO.cs
- ChildTable.cs
- basecomparevalidator.cs
- GenericAuthenticationEventArgs.cs
- DesignerTransactionCloseEvent.cs
- UnwrappedTypesXmlSerializerManager.cs
- VirtualPath.cs
- StorageEntityTypeMapping.cs
- LayoutSettings.cs
- ResourceAttributes.cs
- EventsTab.cs
- AjaxFrameworkAssemblyAttribute.cs
- SubstitutionList.cs
- XmlNamespaceManager.cs
- BinaryWriter.cs
- OracleConnectionString.cs
- TextTreeTextElementNode.cs
- AnimatedTypeHelpers.cs
- WebConvert.cs
- printdlgexmarshaler.cs
- StrongNameUtility.cs
- DashStyle.cs
- GenerateTemporaryAssemblyTask.cs
- InvalidAsynchronousStateException.cs
- BindingValueChangedEventArgs.cs
- XmlIncludeAttribute.cs
- PermissionAttributes.cs
- SamlSecurityToken.cs
- DoubleAnimationUsingKeyFrames.cs
- InvokePatternIdentifiers.cs
- RegexMatchCollection.cs
- QueryStatement.cs
- PopupRootAutomationPeer.cs
- HandleRef.cs
- ExtentJoinTreeNode.cs
- NonBatchDirectoryCompiler.cs
- MetricEntry.cs
- FacetDescriptionElement.cs
- UnsafeNativeMethods.cs
- MenuStrip.cs
- CalendarAutoFormatDialog.cs
- ConditionCollection.cs
- XmlWriterDelegator.cs
- DataServiceHostWrapper.cs
- EntityStoreSchemaGenerator.cs
- COAUTHINFO.cs
- BitmapMetadata.cs
- TextAutomationPeer.cs
- SymLanguageVendor.cs
- DbExpressionRules.cs
- EventDescriptor.cs
- DocumentSequenceHighlightLayer.cs
- COAUTHINFO.cs
- TraceLog.cs
- RadioButtonPopupAdapter.cs
- KeyGestureConverter.cs
- ToolStripHighContrastRenderer.cs
- ObjectDataSourceEventArgs.cs
- BasicCellRelation.cs
- DriveInfo.cs
- BooleanAnimationBase.cs
- RepeaterItem.cs
- HttpModuleCollection.cs
- ServiceDescriptionSerializer.cs
- MaskedTextBox.cs
- DefaultAssemblyResolver.cs
- DbConnectionPool.cs