SPCmdlet.WriteWarning method (String, String)

Provides a means for displaying a warning message to the user.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Protected Sub WriteWarning ( _
    text As String, _
    helpUrl As String _
)
'Usage
Dim text As String
Dim helpUrl As String

Me.WriteWarning(text, helpUrl)
protected void WriteWarning(
    string text,
    string helpUrl
)

Parameters

  • text
    Type: System.String

    The text literal of the warning message.

  • helpUrl
    Type: System.String

    The URL of an optional Web page to provide additional information regarding the error.

See also

Reference

SPCmdlet class

SPCmdlet members

WriteWarning overload

Microsoft.SharePoint.PowerShell namespace

Cmdlet.WriteWarning