WorkItemAttribute Class
TOC
Collapse the table of content
Expand the table of content

WorkItemAttribute Class

 

Used to specify a work item associated with a test.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.TestTools.UnitTesting.WorkItemAttribute

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true)]
public sealed class WorkItemAttribute : Attribute

NameDescription
System_CAPS_pubmethodWorkItemAttribute(Int32)

Initializes a new instance of the WorkItemAttribute class with an identification number.

NameDescription
System_CAPS_pubpropertyId

Gets the ID of the work item.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This attribute is used to link a test with a work item.

This attribute can be specified on a method. Multiple instances of this attribute may be applied to a method.

For more information about how to use attributes, see Extending Metadata Using Attributes.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft