SPWeb.UIVersion Property

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "validvalue", Type := ClientCallableConstraintType.Custom,  _
    Value := "The value MUST be a defined SPValidUIVersion value. ")> _
<ClientCallableAttribute> _
Public Property UIVersion As Integer
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As Integer

value = instance.UIVersion

instance.UIVersion = value
[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.

Remarks

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.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace