Compartir a través de


IsLoginUtilityReader Método

Validates whether the login used in the connection has the utility reader role.

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

Sintaxis

'Declaración
Public Shared Function IsLoginUtilityReader ( _
    storeConnection As SqlStoreConnection _
) As Boolean
'Uso
Dim storeConnection As SqlStoreConnection
Dim returnValue As Boolean

returnValue = Utility.IsLoginUtilityReader(storeConnection)
public static bool IsLoginUtilityReader(
    SqlStoreConnection storeConnection
)
public:
static bool IsLoginUtilityReader(
    SqlStoreConnection^ storeConnection
)
static member IsLoginUtilityReader : 
        storeConnection:SqlStoreConnection -> bool 
public static function IsLoginUtilityReader(
    storeConnection : SqlStoreConnection
) : boolean

Parámetros

Valor devuelto

Tipo: System. . :: . .Boolean
A Boolean value indicating whether the login has the reader role. If true, the login has the role. Otherwise, false.