次の方法で共有


IVsPreviewChangesEngine.GetWarning(String, Int32) Method

Definition

Gets the dialog warning text and level.

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

Parameters

pbstrWarning
String

[out] The warning text.

ppcwlWarningLevel
Int32

[out] A __PREVIEWCHANGESWARNINGLEVEL value specifying the warning level.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

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

Applies to