Export (0) Print
Expand All

Attribute.GetCustomAttributes Method (ParameterInfo)

.NET Framework 1.1

Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class or inherited from a base class.

[Visual Basic]
Overloads Public Shared Function GetCustomAttributes( _
   ByVal element As ParameterInfo _
) As Attribute()
[C#]
public static Attribute[] GetCustomAttributes(
 ParameterInfo element
);
[C++]
public: static Attribute* GetCustomAttributes(
 ParameterInfo* element
) [];
[JScript]
public static function GetCustomAttributes(
   element : ParameterInfo
) : Attribute[];

Parameters

element
An object derived from class ParameterInfo that describes a parameter of a member of a class.

Return Value

An Attribute array containing the custom attributes applied to element.

-or-

An empty array if no such custom attributes exist.

Exceptions

Exception Type Condition
ArgumentNullException element is a null reference (Nothing in Visual Basic).

Remarks

Return value contains the custom attributes for ancestors of element.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Attribute Class | Attribute Members | System Namespace | Attribute.GetCustomAttributes Overload List

Show:
© 2015 Microsoft