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.StringThe text literal of the warning message.
helpUrl
Type: System.StringThe URL of an optional Web page to provide additional information regarding the error.