检索一个本地化的字符串,包含 Web 部件添加到不兼容的用户界面 (UI) 版本网站时要显示一般错误消息。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetIncorrectUIVersionMessage ( _
needNewUIVersion As Boolean _
) As String
用法
Dim needNewUIVersion As Boolean
Dim returnValue As String
returnValue = SPUtility.GetIncorrectUIVersionMessage(needNewUIVersion)
public static string GetIncorrectUIVersionMessage(
bool needNewUIVersion
)
参数
needNewUIVersion
类型:System.Booleantrue显示消息,告知用户启用新的 UI ;false显示消息,告知用户他们需要使用旧的 UI 或使用不同的 Web 部件与新的 UI 兼容。
返回值
类型:System.String
消息的字符串。