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.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Sintaxis
'Declaración
Public NotInheritable Class DatabasePermission
public sealed class DatabasePermission
public ref class DatabasePermission sealed
public final class DatabasePermission
public final class DatabasePermission
Notas
Texto actualizado:
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.
Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.DatabasePermission
Ejemplo
How to: Grant Server Permissions in Visual Basic .NET
Seguridad para subprocesos
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.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
DatabasePermission Members
Microsoft.SqlServer.Management.Smo Namespace