Conversion DatabasePermission Implicit (DatabasePermission to DatabasePermissionSet)
Converts a single database permission object to a database 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 DatabasePermission _
) As DatabasePermissionSet
'Utilisation
Dim input As DatabasePermission
Dim output As DatabasePermissionSet
output = CType(input, DatabasePermissionSet)
public static implicit operator DatabasePermissionSet (
DatabasePermission permission
)
static implicit operator DatabasePermissionSet^ (
DatabasePermission^ permission
)
JScript prend en charge l'utilisation de conversions personnalisées, mais pas la déclaration de nouvelles conversions.
Paramètres
- permission
Type : Microsoft.SqlServer.Management.Smo.DatabasePermission
The DatabasePermission to convert.
Valeur de retour
Type : Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A database DatabasePermissionSet value containing the DatabasePermission specified by the permission parameter.