IVsPreviewChangesEngine.GetWarning Method

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)

Syntax

‘선언
Function GetWarning ( _
    <OutAttribute> ByRef pbstrWarning As String, _
    <OutAttribute> ByRef ppcwlWarningLevel As Integer _
) As Integer
‘사용 방법
Dim instance As IVsPreviewChangesEngine
Dim pbstrWarning As String
Dim ppcwlWarningLevel As Integer
Dim returnValue As Integer

returnValue = instance.GetWarning(pbstrWarning, _
    ppcwlWarningLevel)
int GetWarning(
    out string pbstrWarning,
    out int ppcwlWarningLevel
)
int GetWarning(
    [OutAttribute] String^% pbstrWarning, 
    [OutAttribute] int% ppcwlWarningLevel
)
abstract GetWarning : 
        pbstrWarning:string byref * 
        ppcwlWarningLevel:int byref -> int 
function GetWarning(
    pbstrWarning : String, 
    ppcwlWarningLevel : int
) : int

Parameters

Return Value

Type: System.Int32
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
);

.NET Framework Security

See Also

Reference

IVsPreviewChangesEngine Interface

IVsPreviewChangesEngine Members

Microsoft.VisualStudio.Shell.Interop Namespace