ObjectPermissionSet 類別
The ObjectPermissionSet object represents a set of object permissions in Microsoft SQL Server.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.PermissionSetBase
Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public NotInheritable Class ObjectPermissionSet _
Inherits PermissionSetBase
'用途
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
ObjectPermissionSet 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
ObjectPermissionSet() | Initializes a new instance of the ObjectPermissionSet class. | |
ObjectPermissionSet(ObjectPermission) | Initializes a new instance of the ObjectPermissionSet class based on the specified object permission. | |
ObjectPermissionSet(array<ObjectPermission[]) | Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions. | |
ObjectPermissionSet(ObjectPermissionSet) | Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions. |
上層
屬性
名稱 | 說明 | |
---|---|---|
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. | |
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. | |
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. | |
CreateSequence | Gets or sets the Boolean property value that specifies whether to include the CREATE SEQUENCE permission in the permission set. This permission gives the grantee the ability to create a sequence within the database. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. |
上層
方法
名稱 | 說明 | |
---|---|---|
Add(ObjectPermission) | Returns an object permission set after adding a new object permission to the referenced permission set. | |
Add(ObjectPermissionSet, ObjectPermission) | Returns an object permission set after adding a new object permission to the referenced permission set. | |
Equals | Determines whether the current ObjectPermissionSet object is equal to a specified object. (覆寫 PermissionSetBase.Equals(Object)。) | |
GetHashCode | This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (覆寫 PermissionSetBase.GetHashCode()。) | |
GetType | (繼承自 Object。) | |
Remove | Removes a permission from the permission set. | |
Subtract | Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object. | |
ToString | Returns the string value that represents the specified PermissionSetBase object. (繼承自 PermissionSetBase。) |
上層
運算子
名稱 | 說明 | |
---|---|---|
Addition | Creates an object permission set by performing an addition operation on an ObjectPermission object and an ObjectPermissionSet object. | |
Equality | Determines whether two objects are equal by performing an equality operation on two ObjectPermissionSet objects. | |
Inequality | Determines whether two objects are unequal by performing an inequality operation on two ObjectPermissionSet objects. | |
Subtraction | Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object. |
上層
備註
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
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。