共用方式為


BitwiseOr 運算子

Creates a server event set by performing a bitwise OR operation on two ServerEvent objects.

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

語法

'宣告
Public Shared Operator Or ( _
    eventLeft As ServerEvent, _
    eventRight As ServerEvent _
) As ServerEventSet
'用途
Dim eventLeft As ServerEvent
Dim eventRight As ServerEvent
Dim returnValue As ServerEventSet

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

參數

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .ServerEventSet
A ServerEventSet object value that specifies a set of server events.