Share via


Énumération PrincipalType

The PrincipalType enumeration contains values that specify the type of user, role, or login.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.SqlEnum (en Microsoft.SqlServer.SqlEnum.dll)

Syntaxe

'Déclaration
Public Enumeration PrincipalType
'Utilisation
Dim instance As PrincipalType
public enum PrincipalType
public enum class PrincipalType
type PrincipalType
public enum PrincipalType

Membres

Nom de membre Description
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.

Notes

The PrincipalType enumeration class is served by the GranteeType and GrantorType properties.

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.