Share via


ITestMethod.GetAttributes Method

Definition

Overloads

GetAttributes<TAttributeType>()

Get attribute of specific type.

GetAttributes<TAttributeType>(Boolean)

Get attribute of specific type.

GetAttributes<TAttributeType>()

Source:
ITestMethod.cs

Get attribute of specific type.

public TAttributeType[] GetAttributes<TAttributeType>() where TAttributeType : Attribute;
abstract member GetAttributes : unit -> 'AttributeType[] (requires 'AttributeType :> Attribute)
Public Function GetAttributes(Of TAttributeType As Attribute) () As TAttributeType()

Type Parameters

TAttributeType

System.Attribute type.

Returns

TAttributeType[]

The attributes of the specified type.

Applies to

GetAttributes<TAttributeType>(Boolean)

Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs
Source:
ITestMethod.cs

Get attribute of specific type.

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

Type Parameters

AttributeType TAttributeType

System.Attribute type.

System.Attribute type.

Parameters

inherit
Boolean

Whether attribute defined in parent class is valid.

Returns

AttributeType[]
TAttributeType[]

The attributes of the specified type.

Applies to