Share via


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

成員

成員名稱 說明
None Value = 5. None.
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 版支援此命名空間、類別或成員。