共用方式為


IVsContainedLanguageHost.GetErrorProviderInformation(String, Guid) Method

Definition

Retrieves information about the error provider.

public:
 int GetErrorProviderInformation([Runtime::InteropServices::Out] System::String ^ % pbstrTaskProviderName, [Runtime::InteropServices::Out] Guid % pguidTaskProviderGuid);
public int GetErrorProviderInformation (out string pbstrTaskProviderName, out Guid pguidTaskProviderGuid);
abstract member GetErrorProviderInformation : string * Guid -> int
Public Function GetErrorProviderInformation (ByRef pbstrTaskProviderName As String, ByRef pguidTaskProviderGuid As Guid) As Integer

Parameters

pbstrTaskProviderName
String

[out] Name of the task provider.

pguidTaskProviderGuid
Guid

[out] A GUID identifying the task provider.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT GetErrorProviderInformation(  
   [out] BSTR* pbstrTaskProviderName,  
   [out] GUID* pguidTaskProviderGuid  
);  

The information returned by this method is typically the name and GUID for the editor that implements the IVsContainedLanguageHost interface.

Applies to