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.
公共属性静态成员 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 Returns V
公共属性静态成员 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 (覆盖 Object. . :: . .Equals(Object)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. (覆盖 Object. . :: . .GetHashCode() () () ()。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 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 Widening Implicit Implicit Implicit(ObjectPermission to 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 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。