다음을 통해 공유


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