DatabasePermission 类

The DatabasePermission object represents a SQL Server database permission. The database permission can be added to a database permission set, and then granted, revoked, or denied to a user.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..DatabasePermission

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public NotInheritable Class DatabasePermission
用法
Dim instance As DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
[<SealedAttribute>]
type DatabasePermission =  class end
public final class DatabasePermission

DatabasePermission 类型公开以下成员。

属性

  名称 说明
公共属性静态成员 Alter Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyApplicationRole Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyAssembly Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyAsymmetricKey Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyCertificate Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyContract Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyDatabaseAudit Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyDatabaseDdlTrigger Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyDatabaseEventNotification Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyDataspace Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyFulltextCatalog Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyMessageType Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyRemoteServiceBinding Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyRole Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyRoute Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnySchema Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyService Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnySymmetricKey Gets a permission that can be included in the database permission set.
公共属性静态成员 AlterAnyUser Gets a permission that can be included in the database permission set.
公共属性静态成员 Authenticate Gets a permission that can be included in the database permission set.
公共属性静态成员 BackupDatabase Gets a permission that can be included in the database permission set.
公共属性静态成员 BackupLog Gets a permission that can be included in the database permission set.
公共属性静态成员 Checkpoint Gets a permission that can be included in the database permission set.
公共属性静态成员 Connect Gets a permission that can be included in the database permission set.
公共属性静态成员 ConnectReplication Gets a permission that can be included in the database permission set.
公共属性静态成员 Control Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateAggregate Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateAssembly Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateAsymmetricKey Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateCertificate Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateContract Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateDatabase Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateDatabaseDdlEventNotification Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateDefault Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateFulltextCatalog Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateFunction Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateMessageType Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateProcedure Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateQueue Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateRemoteServiceBinding Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateRole Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateRoute Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateRule Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateSchema Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateService Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateSymmetricKey Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateSynonym Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateTable Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateType Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateView Gets a permission that can be included in the database permission set.
公共属性静态成员 CreateXmlSchemaCollection Gets a permission that can be included in the database permission set.
公共属性静态成员 Delete Gets a permission that can be included in the database permission set.
公共属性静态成员 Execute Gets a permission that can be included in the database permission set.
公共属性静态成员 Insert Gets a permission that can be included in the database permission set.
公共属性静态成员 References Gets a permission that can be included in the database permission set.
公共属性静态成员 Select Gets a permission that can be included in the database permission set.
公共属性静态成员 Showplan Gets a permission that can be included in the database permission set.
公共属性静态成员 SubscribeQueryNotifications Gets a permission that can be included in the database permission set.
公共属性静态成员 TakeOwnership Gets a permission that can be included in the database permission set.
公共属性静态成员 Update Gets a permission that can be included in the database permission set.
公共属性静态成员 ViewDatabaseState Gets a permission that can be included in the database permission set.
公共属性静态成员 ViewDefinition Gets a permission that can be included in the database permission set.

页首

方法

  名称 说明
公共方法静态成员 Add Returns a set of database permissions after adding a new database permission to an existing set of database permissions.
公共方法静态成员 BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
公共方法 Equals Determines whether the referenced database permission object is equal to a specified object. (覆盖 Object. . :: . .Equals(Object)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (覆盖 Object. . :: . .GetHashCode() () () ()。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法静态成员 ToDatabasePermissionSet Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
公共方法 ToString (从 Object 继承。)

页首

运算符

  名称 说明
公共运算符静态成员 Addition Creates a database permission set by performing an addition operation on two DatabasePermission objects.
公共运算符静态成员 BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
公共运算符静态成员 Equality Compares two DatabasePermission objects in an equality operation.
公共运算符静态成员 Implicit Widening Implicit Implicit Implicit(DatabasePermission to DatabasePermissionSet) Converts a single database permission object to a database permission set.
公共运算符静态成员 Inequality Determines whether two DatabasePermission objects are not equal by performing an inequality operation.

页首

注释

Database permissions are required when running granting, denying, or revoking permissions on a database. The DatabasePermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Database object. Also, database permissions can be added to the DatabasePermissionSet object, which can also be used with the Grant, Deny, and Revoke methods.

Thread Safety

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。不保证所有实例成员都是线程安全的。

线程安全

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