Freigeben über


PrincipalType Enumeration

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

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SqlEnum (in microsoft.sqlserver.sqlenum.dll)

Syntax

'Declaration
Public Enumeration PrincipalType
public enum PrincipalType
public enum class PrincipalType
public enum PrincipalType
public enum PrincipalType

Members

Member name Description
ApplicationRole Value = 4. An application role.
DatabaseRole Value = 3. A database role (fixed or user-defined).
Login Value = 0. A Microsoft SQL Server login.
ServerRole Value = 1. A fixed server role.
User Value = 2. A database user.

Hinweise

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

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo Namespace