Partager via


ITestMethod.GetAttributes<AttributeType>(Boolean) Method

Definition

Get attribute of specific type.

public:
generic <typename AttributeType>
 where AttributeType : Attribute cli::array <AttributeType> ^ GetAttributes(bool inherit);
public AttributeType[] GetAttributes<AttributeType> (bool inherit) where AttributeType : Attribute;
abstract member GetAttributes : bool -> 'AttributeType[] (requires 'AttributeType :> Attribute)
Public Function GetAttributes(Of AttributeType As Attribute) (inherit As Boolean) As AttributeType()

Type Parameters

AttributeType

System.Attribute type.

Parameters

inherit
Boolean

Whether attribute defined in parent class is valid.

Returns

AttributeType[]

The attributes of the specified type.

Applies to