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)
Syntax
void OnWorkItemCreated(
IEnumerable<IElement> elements,
IWorkItemDocument currentDocument
)
void OnWorkItemCreated(
IEnumerable<IElement^>^ elements,
IWorkItemDocument^ currentDocument
)
abstract OnWorkItemCreated :
elements:IEnumerable<IElement> *
currentDocument:IWorkItemDocument -> unit
Sub OnWorkItemCreated (
elements As IEnumerable(Of IElement),
currentDocument As IWorkItemDocument
)
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.IWorkItemDocumentThe form whose fields will define the content of the work item.
See Also
ILinkedWorkItemExtension Interface
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace
Return to top