共用方式為


IVsTaskItem3.OnLinkClicked(Int32, Int32) Method

Definition

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.

public:
 int OnLinkClicked(int iField, int iLinkIndex);
public:
 int OnLinkClicked(int iField, int iLinkIndex);
int OnLinkClicked(int iField, int iLinkIndex);
public int OnLinkClicked (int iField, int iLinkIndex);
abstract member OnLinkClicked : int * int -> int
Public Function OnLinkClicked (iField As Integer, iLinkIndex As Integer) As Integer

Parameters

iField
Int32

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

iLinkIndex
Int32

[in] An integer value containing the Link Index.

Returns

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);  

Applies to