다음을 통해 공유


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

'Declaration
Function GetWarning ( _
    <OutAttribute> ByRef pbstrWarning As String, _
    <OutAttribute> ByRef ppcwlWarningLevel As Integer _
) As Integer
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

  • pbstrWarning
    Type: String%

    [out] The warning text.

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace