This topic has not yet been rated - Rate this topic

SPWeb.UIVersion Property

SharePoint 2010

Gets or sets the current version number of the user interface.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableConstraintAttribute(FixedId = "validvalue", Type = ClientCallableConstraintType.Custom, 
	Value = "The value MUST be a defined SPValidUIVersion value. ")]
[ClientCallableAttribute]
public int UIVersion { get; set; }

Property Value

Type: System.Int32
A number between 0 and 127.

The value of this property indicates which elements of the user interface and which master pages are in use. It can also determine compatibility with other components of SharePoint Foundation.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Set Calls internal void SetUIVersion(int value, bool setMasterPage)
Be advised, a call to set UIVersion is essentially the same as calling the internal function this.SetUIVersion(value, true), where value is whatever you passed in (3 or 4).  The side effect is your master page will be changed.

Also, if setting this property, you may want to set the SPWeb.UIVersionConfigurationEnabled property.