Поделиться через


DatabasePermission Class

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

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public NotInheritable Class DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
public final class DatabasePermission
public final class DatabasePermission

Замечания

Изменения текста

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.

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Inheritance Hierarchy

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

Пример

How to: Grant Server Permissions in Visual Basic .NET

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

DatabasePermission Members
Microsoft.SqlServer.Management.Smo Namespace

Другие ресурсы

Granting, Revoking, and Denying Permissions
Разрешения