GetIncorrectUIVersionMessage method
Collapse the table of content
Expand the table of content

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)

public static string GetIncorrectUIVersionMessage(
	bool 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.
© 2016 Microsoft