ILinkedWorkItemExtension.OnWorkItemCreated Method
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
'Declaration
Sub OnWorkItemCreated ( _
elements As IEnumerable(Of IElement), _
currentDocument As IWorkItemDocument _
)
void OnWorkItemCreated(
IEnumerable<IElement> elements,
IWorkItemDocument currentDocument
)
void OnWorkItemCreated(
IEnumerable<IElement^>^ elements,
IWorkItemDocument^ currentDocument
)
abstract OnWorkItemCreated :
elements:IEnumerable<IElement> *
currentDocument:IWorkItemDocument -> unit
function OnWorkItemCreated(
elements : IEnumerable<IElement>,
currentDocument : 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.
.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
ILinkedWorkItemExtension Interface
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace