IVsPreviewChangesEngine::GetWarning Method (String^, Int32)

 

Gets the dialog warning text and level.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: