SPVirtualServerConfig.SelfServiceSiteCreationEnabled property

NOTE: This API is now obsolete.

Gets or sets a Boolean value that specifies whether Self-Service Site Creation is enabled on the virtual server.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",  _
    False)> _
Public Property SelfServiceSiteCreationEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPVirtualServerConfig
Dim value As Boolean

value = instance.SelfServiceSiteCreationEnabled

instance.SelfServiceSiteCreationEnabled = value
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", 
    false)]
public bool SelfServiceSiteCreationEnabled { get; set; }

Property value

Type: System.Boolean
true if Self-Service Site Creation is enabled.

Examples

The following code example enables Self-Service Site Creation on a specified virtual server.

Dim globalAdmin As New SPGlobalAdmin()

Dim uri As New System.Uri("http://Server_Name")
Dim vServer As SPVirtualServer = globalAdmin.OpenVirtualServer(uri)

Dim vConfig As SPVirtualServerConfig = vServer.Config
vConfig.SelfServiceSiteCreationEnabled = True
vConfig.Properties.Update()

globalAdmin.Close()
SPGlobalAdmin globalAdmin = new SPGlobalAdmin();

System.Uri uri = new System.Uri("http://Server_Name");
SPVirtualServer vServer = globalAdmin.OpenVirtualServer(uri);

SPVirtualServerConfig vConfig = vServer.Config;
vConfig.SelfServiceSiteCreationEnabled = true;
vConfig.Properties.Update();

globalAdmin.Close();

See also

Reference

SPVirtualServerConfig class

SPVirtualServerConfig members

Microsoft.SharePoint.Administration namespace