Utility.IsLoginUtilityReader(SqlStoreConnection) Method

Definition

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

public:
 static bool IsLoginUtilityReader(Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ storeConnection);
public static bool IsLoginUtilityReader (Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection storeConnection);
static member IsLoginUtilityReader : Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection -> bool
Public Shared Function IsLoginUtilityReader (storeConnection As SqlStoreConnection) As Boolean

Parameters

storeConnection
SqlStoreConnection

Specifies the connection.

Returns

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

Applies to