Utility.IsLoginUtilityReader(SqlStoreConnection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.