Compartir a través de


IsInFixedServerRole Método

Tests whether the logon associated with the referenced connection is a member of the specified fixed server role.

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public Function IsInFixedServerRole ( _
    fixedServerRole As FixedServerRoles _
) As Boolean
'Uso
Dim instance As ServerConnection
Dim fixedServerRole As FixedServerRoles
Dim returnValue As Boolean

returnValue = instance.IsInFixedServerRole(fixedServerRole)
public bool IsInFixedServerRole(
    FixedServerRoles fixedServerRole
)
public:
bool IsInFixedServerRole(
    FixedServerRoles fixedServerRole
)
member IsInFixedServerRole : 
        fixedServerRole:FixedServerRoles -> bool 
public function IsInFixedServerRole(
    fixedServerRole : FixedServerRoles
) : boolean

Parámetros

Valor devuelto

Tipo: System. . :: . .Boolean
A Boolean value that specifies whether the logon is a member of the specified fixed server role.
If True, the logon is a member of the specified fixed server role.
If False, the logon is not a member of the specified fixed server role.