DocumentService.CreateWorkItem Method (TfsTeamProjectCollection, String, String, Object)
Namespace: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking
Assembly: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking (in Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll)
Syntax
'Declaration
Public Function CreateWorkItem ( _
teamProjectCollection As TfsTeamProjectCollection, _
teamProjectName As String, _
workItemTypeName As String, _
lockToken As Object _
) As IWorkItemDocument
public IWorkItemDocument CreateWorkItem(
TfsTeamProjectCollection teamProjectCollection,
string teamProjectName,
string workItemTypeName,
Object lockToken
)
public:
IWorkItemDocument^ CreateWorkItem(
TfsTeamProjectCollection^ teamProjectCollection,
String^ teamProjectName,
String^ workItemTypeName,
Object^ lockToken
)
member CreateWorkItem :
teamProjectCollection:TfsTeamProjectCollection *
teamProjectName:string *
workItemTypeName:string *
lockToken:Object -> IWorkItemDocument
public function CreateWorkItem(
teamProjectCollection : TfsTeamProjectCollection,
teamProjectName : String,
workItemTypeName : String,
lockToken : Object
) : IWorkItemDocument
Parameters
- teamProjectCollection
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
- teamProjectName
Type: System.String
- workItemTypeName
Type: System.String
- lockToken
Type: System.Object
Return Value
Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.IWorkItemDocument
Returns IWorkItemDocument.
.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.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation.WorkItemTracking Namespace