共用方式為


BuiltInRole Enumeration 

Indicates the type of role to check when calling the My.User.IsInRole Method.

Remarks

This enumeration provides functionality similar to the WindowsBuiltInRole enumeration.

These roles represent the local Windows groups common to most installations of Windows NT, Windows 2000, and Windows XP.

Members

Member Description

AccountOperator

Account operators manage the user accounts on a computer or domain.

Administrator

Administrators have complete and unrestricted access to the computer or domain.

BackupOperator

Backup operators can override security restrictions for the sole purpose of backing up or restoring files.

Guest

Guests are more restricted than users.

PowerUser

Power users possess most administrative permissions with some restrictions. Thus, power users can run legacy applications, in addition to certified applications.

PrintOperator

Print operators can take control of a printer.

Replicator

Replicators support file replication in a domain.

SystemOperator

System operators manage a particular computer.

User

Users are prevented from making accidental or intentional system-wide changes. Thus, users can run certified applications, but not most legacy applications.

Requirements

Namespace: Microsoft.VisualBasic.ApplicationServices

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

See Also

Reference

My.User.IsInRole Method
Microsoft.VisualBasic.ApplicationServices.BuiltInRole

Concepts

Intrinsic Constants and Enumerations