ILinkedWorkItemExtension::OnWorkItemCreated Method (IEnumerable<IElement^>^, IWorkItemDocument^)

 

Called when a user wants to link a model element to a new TFS work item. Called before the work item is displayed to the user, so that you can set the fields in currentDocument.

Namespace:   Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

void OnWorkItemCreated(
	IEnumerable<IElement^>^ elements,
	IWorkItemDocument^ currentDocument
)

Parameters

elements
Type: System.Collections.Generic::IEnumerable<IElement^>^

The model elements that are to be linked to the work item.

currentDocument
Type: Microsoft.VisualStudio.TeamFoundation.WorkItemTracking::IWorkItemDocument^

The form whose fields will define the content of the work item.

Return to top
Show: