Freigeben über


ObjectPermissionSet-Klasse

The ObjectPermissionSet object represents a set of object permissions in Microsoft SQL Server.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .PermissionSetBase
    Microsoft.SqlServer.Management.Smo..::..ObjectPermissionSet

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

Syntax

'Declaration
Public NotInheritable Class ObjectPermissionSet _
    Inherits PermissionSetBase
'Usage
Dim instance As ObjectPermissionSet
public sealed class ObjectPermissionSet : PermissionSetBase
public ref class ObjectPermissionSet sealed : public PermissionSetBase
[<SealedAttribute>]
type ObjectPermissionSet =  
    class
        inherit PermissionSetBase
    end
public final class ObjectPermissionSet extends PermissionSetBase

Der ObjectPermissionSet-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ObjectPermissionSet() () () () Initializes a new instance of the ObjectPermissionSet class.
Öffentliche Methode ObjectPermissionSet(ObjectPermission) Initializes a new instance of the ObjectPermissionSet class based on the specified object permission.
Öffentliche Methode ObjectPermissionSet(array<ObjectPermission> [] () [] []) Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions.
Öffentliche Methode ObjectPermissionSet(ObjectPermissionSet) Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Alter Gets or sets the Boolean property value that specifies whether to include the ALTER permission in the permission set. The permission lets the grantee change properties, except ownership, of the object.
Öffentliche Eigenschaft Connect Gets or sets the Boolean property value that specifies whether to include the CONNECT permission in the permission set. The permission lets the grantee create a connection between the object and an instance of SQL Server.
Öffentliche Eigenschaft Control Gets or sets the Boolean property value that specifies whether to include the CONTROL permission in the permission set. The permission gives the grantee full control over the object, including all defined permissions for the object, the ability to create permissions on the object, and full control over child objects.
Öffentliche Eigenschaft Delete Gets or sets the Boolean property value that specifies whether to include the DELETE permission in the permission set. The permission lets the grantee delete the object.
Öffentliche Eigenschaft Execute Gets or sets the Boolean property value that specifies whether to include the EXECUTE permission in the permission set. The permission lets the grantee execute the object.
Öffentliche Eigenschaft Impersonate Gets or sets the Boolean property value that specifies whether to include the IMPERSONATE permission in the permission set. The permission lets the grantee impersonate the user or the login.
Öffentliche Eigenschaft Insert Gets or sets the Boolean property value that specifies whether to include the INSERT permission in the permission set. The permission lets the grantee insert data into the object.
Öffentliche Eigenschaft Receive Gets or sets the Boolean property value that specifies whether to include the RECEIVE permission in the permission set. The permission lets the grantee receive messages from a Service Broker queue.
Öffentliche Eigenschaft References Gets or sets the Boolean property value that specifies whether to include the REFERENCES permission in the permission set. This permission lets the grantee reference data in the object.
Öffentliche Eigenschaft Select Gets or sets the Boolean property value that specifies whether to include the SELECT permission in the permission set. This permission lets the grantee retrieve data from the object.
Öffentliche Eigenschaft Send Gets or sets the Boolean property value that specifies whether to include the SEND permission in the permission set. This permission lets the grantee send messages to a Service Broker service.
Öffentliche Eigenschaft TakeOwnership Gets or sets the Boolean property value that specifies whether to include the TAKE OWNERSHIP permission in the permission set. This permission lets the grantee take ownership of the object.
Öffentliche Eigenschaft Update Gets or sets the Boolean property value that specifies whether to include the UPDATE permission in the permission set. This permission lets the grantee modify data in the object.
Öffentliche Eigenschaft ViewChangeTracking Gets or sets the Boolean property value that specifies whether to include the VIEW CHANGE TRACKING permission in the permission set. This permission lets the grantee view the tracking information for a database object.
Öffentliche Eigenschaft ViewDefinition Gets or sets the Boolean property value that specifies whether to include the VIEW DEFINITION permission in the permission set. This permission lets the grantee view the metadata that defines the object.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add(ObjectPermission) Returns an object permission set after adding a new object permission to the referenced permission set.
Öffentliche MethodeStatisches Element Add(ObjectPermissionSet, ObjectPermission) Returns an object permission set after adding a new object permission to the referenced permission set.
Öffentliche Methode Equals Determines whether the current ObjectPermissionSet object is equal to a specified object. (Überschreibt PermissionSetBase. . :: . .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 PermissionSetBase. . :: . .GetHashCode() () () ().)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Remove Removes a permission from the permission set.
Öffentliche MethodeStatisches Element Subtract Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object.
Öffentliche Methode ToString Gibt den String-Wert zurück, der das angegebene PermissionSetBase-Objekt darstellt. (Geerbt von PermissionSetBase.)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Addition Creates an object permission set by performing an addition operation on an ObjectPermission object and an ObjectPermissionSet object.
Öffentlicher OperatorStatisches Element Equality Determines whether two objects are equal by performing an equality operation on two ObjectPermissionSet objects.
Öffentlicher OperatorStatisches Element Inequality Determines whether two objects are unequal by performing an inequality operation on two ObjectPermissionSet objects.
Öffentlicher OperatorStatisches Element Subtraction Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object.

Zum Anfang

Hinweise

Object permissions are required when granting, denying, or revoking permissions on an object. The ObjectPermissionSet object is required to specify the set of permissions that apply to the Grant method, the Deny method, and the Revoke method of the object.

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.