共用方式為


Addition 運算子

DatabasePermission 物件和 DatabasePermissionSet 物件上執行加法運算,建立資料庫權限集合。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Shared Operator + ( _
    permissionLeft As DatabasePermissionSet, _
    permissionRight As DatabasePermission _
) As DatabasePermissionSet
'用途
Dim permissionLeft As DatabasePermissionSet
Dim permissionRight As DatabasePermission
Dim returnValue As DatabasePermissionSet

returnValue = (permissionLeft + permissionRight)
public static DatabasePermissionSet operator +(
    DatabasePermissionSet permissionLeft,
    DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ operator +(
    DatabasePermissionSet^ permissionLeft, 
    DatabasePermission^ permissionRight
)
static let inline (+)
        permissionLeft:DatabasePermissionSet * 
        permissionRight:DatabasePermission  : DatabasePermissionSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermissionSet
指定資料庫權限集合的 DatabasePermissionSet 物件值。