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
)

参数

  • helpUrl
    类型:System.String

    提供有关错误的其他信息的可选的 Web 页的 URL。

另请参阅

引用

SPCmdlet 类

SPCmdlet 成员

WriteWarning 重载

Microsoft.SharePoint.PowerShell 命名空间

Cmdlet.WriteWarning