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 命名空间