WorkItemAttribute Class

Use this attribute to specify a work item that is associated with a test.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class WorkItemAttribute _
    Inherits Attribute
'Usage
Dim instance As WorkItemAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class WorkItemAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class WorkItemAttribute sealed : public Attribute
public final class WorkItemAttribute extends Attribute

Remarks

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

You can specify this attribute on a class. You can apply multiple instances of this attribute to a class.

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

Inheritance Hierarchy

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

Thread Safety

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

See Also

Reference

WorkItemAttribute Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace