ObjectPermission.ToObjectPermissionSet Método
Converts an object permission into an object permission set.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Shared Function ToObjectPermissionSet ( _
permission As ObjectPermission _
) As ObjectPermissionSet
'Uso
Dim permission As ObjectPermission
Dim returnValue As ObjectPermissionSet
returnValue = ObjectPermission.ToObjectPermissionSet(permission)
public static ObjectPermissionSet ToObjectPermissionSet(
ObjectPermission permission
)
public:
static ObjectPermissionSet^ ToObjectPermissionSet(
ObjectPermission^ permission
)
static member ToObjectPermissionSet :
permission:ObjectPermission -> ObjectPermissionSet
public static function ToObjectPermissionSet(
permission : ObjectPermission
) : ObjectPermissionSet
Parámetros
- permission
Tipo: Microsoft.SqlServer.Management.Smo.ObjectPermission
An ObjectPermission object that specifies the object permission.
Valor devuelto
Tipo: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
An ObjectPermissionSet object that specifies a set of object permissions.
Ejemplos
Conceder, revocar y denegar permisos