ICustomAttributeProvider Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides custom attributes for reflection objects that support them.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Interface ICustomAttributeProvider
[ComVisibleAttribute(true)]
public interface ICustomAttributeProvider

The ICustomAttributeProvider type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCustomAttributes(Boolean) Returns an array of all of the custom attributes defined on this member, excluding named attributes, or an empty array if there are no custom attributes.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetCustomAttributes(Type, Boolean) Returns an array of custom attributes defined on this member, identified by type, or an empty array if there are no custom attributes of that type.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsDefined Indicates whether one or more instance of attributeType is defined on this member.

Top

Remarks

Nearly all the Reflection classes can have attributes associated with them. Attributes can be standard (public, private, HelpString) or custom.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference