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 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。

示例

授予、撤消和拒绝权限

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Smo 命名空间