共用方式為


SPDeploymentSettings.IncludeSecurity Property

Gets or sets a value that determines whether site security groups and the group membership information is exported or imported.

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

Syntax

Public Property IncludeSecurity As SPIncludeSecurity
    Get
    Set

Dim instance As SPDeploymentSettings
Dim value As SPIncludeSecurity

value = instance.IncludeSecurity

instance.IncludeSecurity = value
public SPIncludeSecurity IncludeSecurity { get; set; }

Property Value

Type: Microsoft.SharePoint.Deployment.SPIncludeSecurity
An SPIncludeSecurity value.

Remarks

The enumeration provide three values:

  • All: Specifies the export of user memberships and role assignments such as out of the box roles like Web Designer, plus any custom roles that extend from the out of the box roles. The ACL for each object is exported to the migration package, as well as user information defined in the DAP or LDAP servers.

  • None: No user role or security group information is exported. This is the default.

  • WssOnly: Specifies the export of user memberships and role assignments such as out of the box roles like Web Designer, plus any custom roles that extend from the out of the box roles. The ACL for each object is exported to the migration package; however, user information defined in the DAP or LDAP servers is not exported.

The default value is None.

When exporting objects smaller than a web (for example, a list or list item) you should set IncludeSecurity to None; otherwise, security group and membership information for the entire web is exported.

See Also

Reference

SPDeploymentSettings Class

SPDeploymentSettings Members

Microsoft.SharePoint.Deployment Namespace