IVsPreviewChangesEngine::GetWarning Method (String^, Int32)
Visual Studio 2015
Gets the dialog warning text and level.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int GetWarning( [OutAttribute] String^% pbstrWarning, [OutAttribute] int% ppcwlWarningLevel )
Parameters
- pbstrWarning
-
Type:
System::String^
[out] The warning text.
- ppcwlWarningLevel
-
Type:
System::Int32
[out] A __PREVIEWCHANGESWARNINGLEVEL value specifying the warning level.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT GetWarning(
[out] BSTR *pbstrWarning,
[out] PREVIEWCHANGESWARNINGLEVEL *ppcwlWarningLevel
);
Show: