SPSite.UIVersionConfigurationEnabled property
SharePoint 2013
NOTE: This API is now obsolete.
Gets or sets a Boolean value that specifies whether to enable the visual upgrade user interface (UI) for changing the UI version of the site collection.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)