共用方式為


ServerPermission.BitwiseOr 運算子

Creates a server permission set by performing a bitwise OR operation on two ServerPermission objects.

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

語法

'宣告
Public Shared Operator Or ( _
    permissionLeft As ServerPermission, _
    permissionRight As ServerPermission _
) As ServerPermissionSet
'用途
Dim permissionLeft As ServerPermission 
Dim permissionRight As ServerPermission 
Dim returnValue As ServerPermissionSet 

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo.ServerPermissionSet
A ServerPermissionSet object that specifies a set of server permissions.

範例

授與、撤銷和拒絕權限

請參閱

參考

ServerPermission 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

權限 (Database Engine)

sys.server_permissions (Transact-SQL)