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

Return Value

Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
A single ObjectPermission to a ObjectPermission.

Examples

Granting, Revoking, and Denying Permissions

See Also

Reference

ObjectPermission Class

Microsoft.SqlServer.Management.Smo Namespace