PrincipalType 枚举
The PrincipalType enumeration contains values that specify the type of user, role, or login.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.SqlEnum(在 Microsoft.SqlServer.SqlEnum.dll 中)
语法
声明
Public Enumeration PrincipalType
用法
Dim instance As PrincipalType
public enum PrincipalType
public enum class PrincipalType
type PrincipalType
public enum PrincipalType
成员
成员名称 | 说明 | |
---|---|---|
Login | Value = 0. A SQL Server login. | |
ServerRole | Value = 1. A fixed server role. | |
User | Value = 2. A database user. | |
DatabaseRole | Value = 3. A database role (fixed or user-defined). | |
ApplicationRole | Value = 4. An application role. |
注释
The PrincipalType enumeration class is served by the GranteeType and GrantorType properties.
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。