Partager via


Conversion Implicit (ServerPermission to ServerPermissionSet)

Transforms a single Server Permission to Server Permission Set.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Shared Widening Operator CType ( _
    permission As ServerPermission _
) As ServerPermissionSet
'Utilisation
Dim input As ServerPermission
Dim output As ServerPermissionSet

output = CType(input, ServerPermissionSet)
public static implicit operator ServerPermissionSet (
    ServerPermission permission
)
static implicit operator ServerPermissionSet^ (
    ServerPermission^ permission
)
JScript prend en charge l'utilisation de conversions personnalisées, mais pas la déclaration de nouvelles conversions.

Notes

The op_Implicit(ServerPermission) method is a implicit user-defined type conversion operator that converts a single Server Permission to a Server Permission Set.