ITestMethod.GetAttributes<AttributeType>(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.