共用方式為


ServerPermission Implicit 轉換 (ServerPermission to ServerPermissionSet)

Creates a new server permission set by implicitly converting server permission.

命名空間:  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 支援自訂轉換的使用,但不支援新轉換的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ServerPermissionSet
The newly created server permission set.

備註

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

請參閱

參考

ServerPermission 類別

Microsoft.SqlServer.Management.Smo 命名空間