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
- XmlNullResolver.cs
- SystemIPGlobalStatistics.cs
- TextWriter.cs
- RelationshipEndCollection.cs
- SplashScreenNativeMethods.cs
- DbUpdateCommandTree.cs
- TrustManagerMoreInformation.cs
- AffineTransform3D.cs
- PointKeyFrameCollection.cs
- QueryCacheManager.cs
- CompoundFileDeflateTransform.cs
- Attributes.cs
- NamedObject.cs
- UniqueEventHelper.cs
- ThreadAbortException.cs
- DbConnectionHelper.cs
- Debug.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- FixedHighlight.cs
- ModelFactory.cs
- TypeSystem.cs
- CachedRequestParams.cs
- DataColumnCollection.cs
- SafeProcessHandle.cs
- AxHost.cs
- SecurityPermission.cs
- HierarchicalDataTemplate.cs
- Visual3D.cs
- ConfigurationStrings.cs
- CommonBehaviorsSection.cs
- HashHelper.cs
- SecurityChannelFaultConverter.cs
- PriorityBindingExpression.cs
- WebControl.cs
- TypeElementCollection.cs
- ReferentialConstraint.cs
- HopperCache.cs
- DataListItem.cs
- ParamArrayAttribute.cs
- CryptoProvider.cs
- ListControlStringCollectionEditor.cs
- VarRefManager.cs
- DataGridViewImageColumn.cs
- SqlTypesSchemaImporter.cs
- DataServiceEntityAttribute.cs
- Sorting.cs
- ApplicationInterop.cs
- SchemaInfo.cs
- URIFormatException.cs
- WindowsUpDown.cs
- ThreadPool.cs
- _SSPISessionCache.cs
- AnimationClockResource.cs
- OrthographicCamera.cs
- PerfService.cs
- TextPointerBase.cs
- GridViewRow.cs
- IdentityValidationException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- unsafenativemethodsother.cs
- FileSystemWatcher.cs
- UpdateManifestForBrowserApplication.cs
- EventRoute.cs
- DetailsViewDeletedEventArgs.cs
- DebugControllerThread.cs
- Propagator.JoinPropagator.cs
- HMACMD5.cs
- WebColorConverter.cs
- MouseButtonEventArgs.cs
- TaskCanceledException.cs
- DataGridCellsPresenter.cs
- ECDsaCng.cs
- WebPartConnectionsDisconnectVerb.cs
- ResourceBinder.cs
- SingleTagSectionHandler.cs
- ProofTokenCryptoHandle.cs
- ProxyWebPart.cs
- UrlPropertyAttribute.cs
- ImmutableAssemblyCacheEntry.cs
- TraceSwitch.cs
- VisualStateManager.cs
- Substitution.cs
- CustomDictionarySources.cs
- Inline.cs
- CodeMemberProperty.cs
- ProcessHostMapPath.cs
- PolyQuadraticBezierSegment.cs
- PathGradientBrush.cs
- DataServiceOperationContext.cs
- AttributeCollection.cs
- PenCursorManager.cs
- DiagnosticTraceSchemas.cs
- PageAsyncTaskManager.cs
- BooleanFunctions.cs
- TimeSpan.cs
- CustomExpressionEventArgs.cs
- ApplyTemplatesAction.cs
- Int32RectConverter.cs
- XmlSchemaAnnotated.cs
- TimeSpanConverter.cs