Partager via


IVsTaskItem3.OnLinkClicked Method

If the user clicks on an underlined link in a value of type TVT_LINKTEXT, this method is called with the column field and the link index (the first link in a given value is link 0). The task item should take whatever action is appropriate.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function OnLinkClicked ( _
    iField As Integer, _
    iLinkIndex As Integer _
) As Integer
int OnLinkClicked(
    int iField,
    int iLinkIndex
)
int OnLinkClicked(
    [InAttribute] int iField, 
    [InAttribute] int iLinkIndex
)
abstract OnLinkClicked : 
        iField:int * 
        iLinkIndex:int -> int
function OnLinkClicked(
    iField : int, 
    iLinkIndex : int
) : int

Parameters

  • iField
    Type: Int32

    [in] An integer value representing the Field Column to use.

  • iLinkIndex
    Type: Int32

    [in] An integer value containing the Link Index.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsTaskItem3::OnLinkClicked([in] int iField, [in] int iLinkIndex);

.NET Framework Security

See Also

Reference

IVsTaskItem3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace