共用方式為


IVsSyntheticTextClient.GetErrorText Method

Returns error text for hovering.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Function GetErrorText ( _
    dwReason As UInteger, _
    pSynthReg As IVsSyntheticRegion, _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
int GetErrorText(
    uint dwReason,
    IVsSyntheticRegion pSynthReg,
    out string pbstrText
)
int GetErrorText(
    [InAttribute] unsigned int dwReason, 
    [InAttribute] IVsSyntheticRegion^ pSynthReg, 
    [OutAttribute] String^% pbstrText
)
abstract GetErrorText : 
        dwReason:uint32 * 
        pSynthReg:IVsSyntheticRegion * 
        pbstrText:string byref -> int 
function GetErrorText(
    dwReason : uint, 
    pSynthReg : IVsSyntheticRegion, 
    pbstrText : String
) : int

Parameters

Return Value

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsSyntheticTextClient::GetErrorText(
   [in] DWORD dwReason,
   [in] IVsSyntheticRegion *pSynthReg,
   [out] BSTR *pbstrText
);

.NET Framework Security

See Also

Reference

IVsSyntheticTextClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace