BitwiseOr 運算子
Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Shared Operator Or ( _
permissionLeft As DatabasePermission, _
permissionRight As DatabasePermission _
) As DatabasePermissionSet
'用途
Dim permissionLeft As DatabasePermission
Dim permissionRight As DatabasePermission
Dim returnValue As DatabasePermissionSet
returnValue = (permissionLeft Or permissionRight)
public static DatabasePermissionSet operator |(
DatabasePermission permissionLeft,
DatabasePermission permissionRight
)
public:
static DatabasePermissionSet^ operator |(
DatabasePermission^ permissionLeft,
DatabasePermission^ permissionRight
)
static let inline (|||)
permissionLeft:DatabasePermission *
permissionRight:DatabasePermission : DatabasePermissionSet
JScript 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- permissionLeft
型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermission
A DatabasePermission object that specifies the database permission.
- permissionRight
型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermission
A DatabasePermission object that specifies the database permission.
傳回值
型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabasePermissionSet
A DatabasePermissionSet object that specifies a set of database permissions.