IVsPreviewChangesEngine.GetWarning(String, Int32) 方法

定义

获取对话框警告文本和级别。

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

参数

pbstrWarning
String

弄警告文本。

ppcwlWarningLevel
Int32

__PREVIEWCHANGESWARNINGLEVEL 指定警告级别的值。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

HRESULT GetWarning(  
    [out] BSTR *pbstrWarning,  
    [out] PREVIEWCHANGESWARNINGLEVEL *ppcwlWarningLevel  
);  

适用于