共用方式為


Role-Based Security Permissions 

PrincipalPermission is a role-based security permission that can be used to determine whether a user has a specified identity or is a member of a specified role. PrincipalPermission is the only role-based security permission supplied by the .NET Framework class library.

See Also

Concepts

Security Permissions
Role-Based Security Checks

Other Resources

Key Security Concepts