Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
ppcwlWarningLevel
Type: Int32%[out] A __PREVIEWCHANGESWARNINGLEVEL value specifying the warning level.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.