Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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
)

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.
Show:
© 2015 Microsoft