Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the WorkItem class of the specified WorkItemType.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Sub New ( _
type As WorkItemType _
)
public WorkItem(
WorkItemType type
)
public:
WorkItem(
WorkItemType^ type
)
new :
type:WorkItemType -> WorkItem
public function WorkItem(
type : WorkItemType
)
Parameters
type
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeThe WorkItemType that describes the type of the work item.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the type parameter is null. |
Remarks
For more information about how to use this method, see Create a Work Item By Using the Client Object Model for Team Foundation.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.