IVsPreviewChangesEngine.GetWarning(String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取对话框警告文本和级别。
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 指定警告级别的值。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT GetWarning(
[out] BSTR *pbstrWarning,
[out] PREVIEWCHANGESWARNINGLEVEL *ppcwlWarningLevel
);