SPCmdlet.WriteWarning 方法 (String, String)
提供了一种向用户显示一条警告消息。
命名空间: Microsoft.SharePoint.PowerShell
程序集: Microsoft.SharePoint.PowerShell(位于 Microsoft.SharePoint.PowerShell.dll 中)
语法
声明
Protected Sub WriteWarning ( _
text As String, _
helpUrl As String _
)
用法
Dim text As String
Dim helpUrl As String
Me.WriteWarning(text, helpUrl)
protected void WriteWarning(
string text,
string helpUrl
)
参数
text
类型:System.String警告消息的文本文本。
helpUrl
类型:System.String提供有关错误的其他信息的可选的 Web 页的 URL。