Implicit 轉換 (ServerPermission to ServerPermissionSet)
Transforms a single Server Permission to Server Permission Set.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Widening Operator CType ( _
permission As ServerPermission _
) As ServerPermissionSet
'用途
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 支援自訂轉換的使用,但不支援新轉換的宣告。
備註
The op_Implicit(ServerPermission) method is a implicit user-defined type conversion operator that converts a single Server Permission to a Server Permission Set.