Freigeben über


DatabasePermission-Klasse

The DatabasePermission object represents a SQL Server database permission. The database permission can be added to a database permission set, and then granted, revoked, or denied to a user.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..DatabasePermission

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

Syntax

'Declaration
Public NotInheritable Class DatabasePermission
'Usage
Dim instance As DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
[<SealedAttribute>]
type DatabasePermission =  class end
public final class DatabasePermission

Der DatabasePermission-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche EigenschaftStatisches Element Alter Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyApplicationRole Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyAssembly Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyAsymmetricKey Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyCertificate Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyContract Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyDatabaseAudit Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyDatabaseDdlTrigger Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyDatabaseEventNotification Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyDataspace Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyFulltextCatalog Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyMessageType Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyRemoteServiceBinding Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyRole Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyRoute Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnySchema Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyService Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnySymmetricKey Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element AlterAnyUser Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Authenticate Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element BackupDatabase Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element BackupLog Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Checkpoint Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Connect Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element ConnectReplication Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Control Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateAggregate Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateAssembly Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateAsymmetricKey Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateCertificate Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateContract Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateDatabase Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateDatabaseDdlEventNotification Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateDefault Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateFulltextCatalog Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateFunction Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateMessageType Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateProcedure Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateQueue Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateRemoteServiceBinding Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateRole Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateRoute Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateRule Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateSchema Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateService Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateSymmetricKey Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateSynonym Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateTable Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateType Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateView Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element CreateXmlSchemaCollection Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Delete Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Execute Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Insert Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element References Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Select Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Showplan Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element SubscribeQueryNotifications Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element TakeOwnership Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element Update Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element ViewDatabaseState Gets a permission that can be included in the database permission set.
Öffentliche EigenschaftStatisches Element ViewDefinition Gets a permission that can be included in the database permission set.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche MethodeStatisches Element Add Returns a set of database permissions after adding a new database permission to an existing set of database permissions.
Öffentliche MethodeStatisches Element BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
Öffentliche Methode Equals Determines whether the referenced database permission object is equal to a specified object. (Überschreibt Object. . :: . .Equals(Object).)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (Überschreibt Object. . :: . .GetHashCode() () () ().)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche MethodeStatisches Element ToDatabasePermissionSet Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Addition Creates a database permission set by performing an addition operation on two DatabasePermission objects.
Öffentlicher OperatorStatisches Element BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
Öffentlicher OperatorStatisches Element Equality Compares two DatabasePermission objects in an equality operation.
Öffentlicher OperatorStatisches Element Implicit Widening Implicit Implicit Implicit(DatabasePermission to DatabasePermissionSet) Converts a single database permission object to a database permission set.
Öffentlicher OperatorStatisches Element Inequality Determines whether two DatabasePermission objects are not equal by performing an inequality operation.

Zum Anfang

Hinweise

Database permissions are required when running granting, denying, or revoking permissions on a database. The DatabasePermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Database object. Also, database permissions can be added to the DatabasePermissionSet object, which can also be used with the Grant, Deny, and Revoke methods.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.