IVsSyntheticTextClient.GetErrorText Yöntem

Tanım

Vurgulama için hata metni döndürür.

public:
 int GetErrorText(System::UInt32 dwReason, Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticRegion ^ pSynthReg, [Runtime::InteropServices::Out] System::String ^ % pbstrText);
int GetErrorText(unsigned int dwReason, Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticRegion const & pSynthReg, [Runtime::InteropServices::Out] std::wstring const & & pbstrText);
public int GetErrorText (uint dwReason, Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticRegion pSynthReg, out string pbstrText);
abstract member GetErrorText : uint32 * Microsoft.VisualStudio.TextManager.Interop.IVsSyntheticRegion * string -> int
Public Function GetErrorText (dwReason As UInteger, pSynthReg As IVsSyntheticRegion, ByRef pbstrText As String) As Integer

Parametreler

dwReason
UInt32

'ndaki Çağrının nedeni.

pSynthReg
IVsSyntheticRegion

'ndaki İlgilendiğiniz yapay bölge.

pbstrText
String

dışı Görüntülenecek metin.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Textmgr. IDL dosyasından:

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

Şunlara uygulanır