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.