ViewEventSet.Subtraction 运算符
Creates a view event set by performing a subtraction operation on a ViewEvent object and a ViewEventSet object.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Shared Operator - ( _
eventSet As ViewEventSet, _
anEvent As ViewEvent _
) As ViewEventSet
用法
Dim eventSet As ViewEventSet
Dim anEvent As ViewEvent
Dim returnValue As ViewEventSet
returnValue = (eventSet - anEvent)
public static ViewEventSet operator -(
ViewEventSet eventSet,
ViewEvent anEvent
)
public:
static ViewEventSet^ operator -(
ViewEventSet^ eventSet,
ViewEvent^ anEvent
)
static let inline(-)
eventSet:ViewEventSet *
anEvent:ViewEvent : ViewEventSet
JScript 支持使用重载的运算符,但不支持声明新重载运算符。
参数
- eventSet
类型:Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object that specifies the view event set.
- anEvent
类型:Microsoft.SqlServer.Management.Smo.ViewEvent
A ViewEvent object that specifies the view events.
返回值
类型:Microsoft.SqlServer.Management.Smo.ViewEventSet
A ViewEventSet object value that specifies a set of view events.