共用方式為


DescriptionAttribute Class

Definition

Description of the test.

public ref class DescriptionAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class DescriptionAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class DescriptionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class DescriptionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type DescriptionAttribute = class
    inherit TestPropertyAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type DescriptionAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type DescriptionAttribute = class
    inherit Attribute
Public NotInheritable Class DescriptionAttribute
Inherits TestPropertyAttribute
Public NotInheritable Class DescriptionAttribute
Inherits Attribute
Inheritance
DescriptionAttribute
Inheritance
DescriptionAttribute
Attributes

Constructors

DescriptionAttribute(String)

Initializes a new instance of the DescriptionAttribute class to describe a test.

Properties

Description

Gets the description of a test.

Name

Gets the name.

(Inherited from TestPropertyAttribute)
Value

Gets the value.

(Inherited from TestPropertyAttribute)

Applies to