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 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- permissionLeft
型別:Microsoft.SqlServer.Management.Smo.ServerPermission
A ServerPermission object that specifies the server permission.
- permissionRight
型別:Microsoft.SqlServer.Management.Smo.ServerPermission
A ServerPermission object that specifies the server permission.
傳回值
型別:Microsoft.SqlServer.Management.Smo.ServerPermissionSet
A ServerPermissionSet object that specifies a set of server permissions.
範例
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間