다음을 통해 공유


SPUtility.GetIncorrectUIVersionMessage Method

Retrieves a localized string that contains the generic error message to display when a Web Part is added to a site with an incompatible user interface (UI) version.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function GetIncorrectUIVersionMessage ( _
    needNewUIVersion As Boolean _
) As String
'Usage
Dim needNewUIVersion As Boolean
Dim returnValue As String

returnValue = SPUtility.GetIncorrectUIVersionMessage(needNewUIVersion)
public static string GetIncorrectUIVersionMessage(
    bool needNewUIVersion
)

Parameters

  • needNewUIVersion
    Type: System.Boolean

    true to display the message that tells the user to enable the new UI; false to display the message that tells the user that they need to use the old UI or use a different Web Part that is compatible with the new UI.

Return Value

Type: System.String
The message string.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace