ObjectPermission Implicit Conversion (ObjectPermission to ObjectPermissionSet)
Converts a single ObjectPermission to a ObjectPermissionSet.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Shared Widening Operator CType ( _
permission As ObjectPermission _
) As ObjectPermissionSet
'Usage
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 supports the use of custom casts, but not the declaration of new ones.
Parameters
- permission
Type: Microsoft.SqlServer.Management.Smo.ObjectPermission
The permission object.
Return Value
Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
A single ObjectPermission to a ObjectPermission.
Examples
Granting, Revoking, and Denying Permissions