共用方式為


SPWebService.CreateActiveDirectoryAccounts Property

Gets or sets a Boolean value that specifies whether to create Active Directory accounts for new site users.

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

Syntax

'Declaration
Public Property CreateActiveDirectoryAccounts As Boolean
    Get
    Set
'Usage
Dim instance As SPWebService
Dim value As Boolean

value = instance.CreateActiveDirectoryAccounts

instance.CreateActiveDirectoryAccounts = value
public bool CreateActiveDirectoryAccounts { get; set; }

Property Value

Type: System.Boolean
true to create Active Directory accounts for new site users; otherwise, false.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace