Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JournalEntry.cs
- ResourceAssociationSetEnd.cs
- TextElementCollection.cs
- KeyConstraint.cs
- WebPermission.cs
- SubpageParagraph.cs
- ThicknessAnimationBase.cs
- SessionState.cs
- ASCIIEncoding.cs
- IdentityModelDictionary.cs
- FileSystemInfo.cs
- DiagnosticStrings.cs
- TextBounds.cs
- Latin1Encoding.cs
- GenericParameterDataContract.cs
- DoubleCollection.cs
- thaishape.cs
- CommonObjectSecurity.cs
- QueryParameter.cs
- DocumentPageHost.cs
- FontEmbeddingManager.cs
- CorrelationQueryBehavior.cs
- SByteConverter.cs
- AdPostCacheSubstitution.cs
- Thread.cs
- FixedTextContainer.cs
- SchemaEntity.cs
- LoadRetryHandler.cs
- OpenTypeLayoutCache.cs
- CmsInterop.cs
- CaretElement.cs
- IpcManager.cs
- CacheRequest.cs
- DataGridSortCommandEventArgs.cs
- SoapSchemaMember.cs
- XmlStreamStore.cs
- CompositeKey.cs
- PluralizationServiceUtil.cs
- MatrixKeyFrameCollection.cs
- PriorityItem.cs
- TextLine.cs
- PropertyTab.cs
- SystemIdentity.cs
- AudioException.cs
- WebPartPersonalization.cs
- dataobject.cs
- WinEventTracker.cs
- ElementInit.cs
- Brush.cs
- AttributeEmitter.cs
- RowToParametersTransformer.cs
- CustomError.cs
- AspNetHostingPermission.cs
- ClientSettingsProvider.cs
- BuildResult.cs
- CodeSubDirectoriesCollection.cs
- SspiNegotiationTokenProviderState.cs
- StateRuntime.cs
- ListViewInsertedEventArgs.cs
- ValidatedControlConverter.cs
- HttpHeaderCollection.cs
- Serializer.cs
- ValueSerializerAttribute.cs
- CodeExporter.cs
- MemoryFailPoint.cs
- Models.cs
- ProjectionPath.cs
- RegexWorker.cs
- EncodingStreamWrapper.cs
- XmlReflectionMember.cs
- WSSecureConversationDec2005.cs
- SelectorItemAutomationPeer.cs
- FixedSOMLineRanges.cs
- Window.cs
- CircleHotSpot.cs
- DocumentViewerConstants.cs
- WorkflowServiceBuildProvider.cs
- UserPreferenceChangingEventArgs.cs
- SinglePageViewer.cs
- TransformDescriptor.cs
- ProcessStartInfo.cs
- DataGridViewCellFormattingEventArgs.cs
- FilterQueryOptionExpression.cs
- odbcmetadatafactory.cs
- TextBreakpoint.cs
- SafeNativeMethods.cs
- FloaterBaseParaClient.cs
- XmlQualifiedNameTest.cs
- HtmlEncodedRawTextWriter.cs
- SelectedDatesCollection.cs
- ConnectionProviderAttribute.cs
- RadioButtonPopupAdapter.cs
- FileFormatException.cs
- Transform.cs
- MessageHeader.cs
- StaticResourceExtension.cs
- DataGridHeaderBorder.cs
- WebPartMinimizeVerb.cs
- CultureInfoConverter.cs
- ColumnMapCopier.cs