ITestMethod.GetAttributes<TAttributeType>(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 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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET