共用方式為


BitwiseOr 運算子

Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.

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

語法

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

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ObjectPermissionSet
An ObjectPermissionSet object that specifies a set of object permissions.