Dela via


DatabasePermission.ViewDatabaseState Property

Gets a permission that can be included in the database permission set.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Shared ReadOnly Property ViewDatabaseState As DatabasePermission
    Get
'Usage
Dim value As DatabasePermission

value = DatabasePermission.ViewDatabaseState
public static DatabasePermission ViewDatabaseState { get; }
public:
static property DatabasePermission^ ViewDatabaseState {
    DatabasePermission^ get ();
}
static member ViewDatabaseState : DatabasePermission
static function get ViewDatabaseState () : DatabasePermission

Property Value

Type: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that represents the ViewDatabaseState permission that can be included in the database permission set.