DatabasePermission Implicit 转换 (DatabasePermission to DatabasePermissionSet)
Converts a single database permission object to a database permission set.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Widening Operator CType ( _
permission As DatabasePermission _
) As DatabasePermissionSet
用法
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 支持使用自定义转换,但不支持声明新自定义转换。
参数
- permission
类型:Microsoft.SqlServer.Management.Smo.DatabasePermission
The DatabasePermission to convert.
返回值
类型:Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A database DatabasePermissionSet value containing the DatabasePermission specified by the permission parameter.