Conversão ObjectPermission Implicit (ObjectPermission to ObjectPermissionSet)
Converts a single ObjectPermission to a ObjectPermissionSet.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
Public Shared Widening Operator CType ( _
permission As ObjectPermission _
) As ObjectPermissionSet
'Uso
Dim input As ObjectPermission
Dim output As ObjectPermissionSet
output = CType(input, ObjectPermissionSet)
public static implicit operator ObjectPermissionSet (
ObjectPermission permission
)
static implicit operator ObjectPermissionSet^ (
ObjectPermission^ permission
)
JScript dá suporte ao uso de casts personalizados, mas não à declaração de casts novos.
Parâmetros
- permission
Tipo: Microsoft.SqlServer.Management.Smo.ObjectPermission
The permission object.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
A single ObjectPermission to a ObjectPermission.
Exemplos
Concedendo, revogando e negando permissões