Conversione ServerPermission Implicit (ServerPermission to ServerPermissionSet)
Creates a new server permission set by implicitly converting server permission.
Spazio dei nomi Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Shared Widening Operator CType ( _
permission As ServerPermission _
) As ServerPermissionSet
'Utilizzo
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 supporta l'utilizzo di cast personalizzati, ma non la dichiarazione di nuovi cast.
Parametri
- permission
Tipo: Microsoft.SqlServer.Management.Smo.ServerPermission
The specified permission to create.
Valore restituito
Tipo: Microsoft.SqlServer.Management.Smo.ServerPermissionSet
The newly created server permission set.
Osservazioni
The op_Implicit(ServerPermission) method is a implicit user-defined type conversion operator that converts a single Server Permission to a Server Permission Set.