IVsCommentTaskToken.Text(String) 方法

定義

傳回批註工作 token 的文字。Returns the text of a comment task token.

public:
 int Text([Runtime::InteropServices::Out] System::String ^ % pbstrText);
int Text([Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int Text (out string pbstrText);
abstract member Text : string -> int
Public Function Text (ByRef pbstrText As String) As Integer

參數

pbstrText
String

[out,retval]包含批註工作標記文字之 BSTR 的指標。[out, retval] Pointer to a BSTR containing the text of the comment task token.

傳回

Int32

如果方法成功,它會傳回 S_OKIf the method succeeds, it returns S_OK. 如果方法失敗,則會傳回錯誤碼。If it fails, it returns an error code.

備註

COM 簽章COM Signature

從 vsshell .idl:From vsshell.idl:

HRESULT IVsCommentTaskToken::Text(  
   [out, retval] BSTR* pbstrText  
);  

文字會識別批註工作權杖,例如「TODO」、「駭客」或「復原」。The text identifies the comment task token, such as "TODO", "HACK", or "UNDONE".

適用於