共用方式為


SPPrincipalType Enumeration

Specifies the scope and other information that is associated with a computer or user name that is maintained and authenticated by Active Directory Domain Services (AD DS).

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  [People Web service]
Web service reference: http://Site/_vti_bin/People.asmx

Syntax

'Declaration
<SerializableAttribute> _
<FlagsAttribute> _
Public Enumeration SPPrincipalType
'Usage
Dim instance As SPPrincipalType
[SerializableAttribute]
[FlagsAttribute]
public enum SPPrincipalType

Members

Member name Description
None Represents user accounts that have been disabled or cases when the user does not have access to objects on this SharePoint site.
User Represents an individual user who is associated with a well-known group. If an account is not disabled, this is the default.
DistributionList Represents a distribution list.
SecurityGroup Represents a security group.
SharePointGroup Represents a group of SharePoint site users.
All Represents all users of a client computer.

Remarks

SharePoint Foundation supports the assignment of permissions to security principals. There are two types of security principals: users and groups. The SharePoint Foundation object model defines the SPPrincipal class that provides the base functionality to assign permissions to a principal. It also defines two classes that derive from SPPrincipal - SPUser and SPGroup.

Principal types are managed for a SharePoint site by a membership provider, a role provider, or other source of user information. There are four scopes for a principal: user, distribution list, security group, and SharePoint Foundation group. They are not mutually exclusive and can be combined for manipulation by SharePoint Foundation applications. Security groups can allow or deny access to SharePoint sites or site objects such as files, lists, and controls. Users of SharePoint sites can be grouped into individual users, categories of users, or distribution lists. Access to SharePoint site objects can also be granted to all users of a client computer.

See Also

Reference

People Web Service

System.Security.Principal

PrincipalInfo