Condividi tramite


ILinkedWorkItemExtension Interface

Implement and export this interface to define a handler for work item links. This is called when an element in a UML model is linked to a TFS work item.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Interface ILinkedWorkItemExtension
[CLSCompliantAttribute(false)]
public interface ILinkedWorkItemExtension
[CLSCompliantAttribute(false)]
public interface class ILinkedWorkItemExtension
[<CLSCompliantAttribute(false)>]
type ILinkedWorkItemExtension =  interface end
public interface ILinkedWorkItemExtension

The ILinkedWorkItemExtension type exposes the following members.

Methods

  Name Description
Public method OnWorkItemCreated 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.
Public method OnWorkItemLinked Called when a link is made to a new or existing TFS work item.
Public method OnWorkItemRemoved Called before the model element is unlinked from a work item, including when the model element is deleted.

Top

Remarks

For more information about UML diagrams, see Developing Models for Software Design.

For more information about using the UML API, see Extending UML Models and Diagrams.

See Also

Reference

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace