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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。