共用方式為


ObjectPermission 類別

The ObjectPermission object represents a SQL Server object permission.

繼承階層

System.Object
  Microsoft.SqlServer.Management.Smo.ObjectPermission

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public NotInheritable Class ObjectPermission
'用途
Dim instance As ObjectPermission
public sealed class ObjectPermission
public ref class ObjectPermission sealed
[<SealedAttribute>]
type ObjectPermission =  class end
public final class ObjectPermission

ObjectPermission 型別公開下列成員。

屬性

  名稱 說明
公用屬性靜態成員 Alter Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Connect Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Control Gets a permission that can be included in the object permission set.
公用屬性靜態成員 CreateSequence Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Delete Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Execute Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Impersonate Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Insert Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Receive Gets a permission that can be included in the object permission set.
公用屬性靜態成員 References Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Select Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Send Gets a permission that can be included in the object permission set.
公用屬性靜態成員 TakeOwnership Gets a permission that can be included in the object permission set.
公用屬性靜態成員 Update Gets a permission that can be included in the object permission set.
公用屬性靜態成員 ViewChangeTracking Gets a permission that can be included in the object permission set.
公用屬性靜態成員 ViewDefinition Gets a permission that can be included in the object permission set.

上層

方法

  名稱 說明
公用方法靜態成員 Add Returns a set of object permissions after adding two object permissions.
公用方法靜態成員 BitwiseOr Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
公用方法 Equals Determines if a ObjectPermission object is the same as the current ObjectPermission object. (覆寫 Object.Equals(Object)。)
公用方法 GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. (覆寫 Object.GetHashCode()。)
公用方法 GetType (繼承自 Object。)
公用方法靜態成員 ToObjectPermissionSet Converts an object permission into an object permission set.
公用方法 ToString (繼承自 Object。)

上層

運算子

  名稱 說明
公用運算子靜態成員 Addition Creates an object permission set by performing an addition operation on two ObjectPermission objects.
公用運算子靜態成員 BitwiseOr Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
公用運算子靜態成員 Equality Creates an object permission set by performing an equality operation on two ObjectPermission objects.
公用運算子靜態成員 Implicit(ObjectPermission to ObjectPermissionSet) Converts a single ObjectPermission to a ObjectPermissionSet.
公用運算子靜態成員 Inequality Creates an object permission set by performing an inequality operation on two ObjectPermission objects.

上層

備註

Object permissions are required when running granting, denying, or revoking permissions on an object. The ObjectPermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the object. Also, object permissions can be added to the ObjectPermissionSet object, which can also be used with the Deny, Revoke, and Grant methods.

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。

範例

授與、撤銷和拒絕權限

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間