共用方式為


SPGlobalAdmin.AccountCreationModeEnabled Property

NOTE: This API is now obsolete.

Use the CreateActiveDirectoryAccounts property of the SPWebService class to specify whether Active Directory Domain Services accounts are created instead. (In Windows SharePoint Services 2.0, the AccountCreationModeEnabled property indicated whether account creation mode for Active Directory Domain Services is enabled, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPWebService.ContentService.CreateActiveDirectoryAccounts instead.",  _
    False)> _
Public ReadOnly Property AccountCreationModeEnabled As Boolean
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As Boolean

value = instance.AccountCreationModeEnabled
[ObsoleteAttribute("Use SPWebService.ContentService.CreateActiveDirectoryAccounts instead.", 
    false)]
public bool AccountCreationModeEnabled { get; }

Property Value

Type: System.Boolean
true if Active Directory account creation mode is enabled; otherwise, false.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace