Compartilhar via


Operador Subtraction

Creates a server trace event set by performing a subtraction operation on a ServerTraceEvent object and a ServerTraceEventSet object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Shared Operator - ( _
    eventSet As ServerTraceEventSet, _
    anEvent As ServerTraceEvent _
) As ServerTraceEventSet
'Uso
Dim eventSet As ServerTraceEventSet
Dim anEvent As ServerTraceEvent
Dim returnValue As ServerTraceEventSet

returnValue = (eventSet - anEvent)
public static ServerTraceEventSet operator -(
    ServerTraceEventSet eventSet,
    ServerTraceEvent anEvent
)
public:
static ServerTraceEventSet^ operator -(
    ServerTraceEventSet^ eventSet, 
    ServerTraceEvent^ anEvent
)
static let inline (-)
        eventSet:ServerTraceEventSet * 
        anEvent:ServerTraceEvent  : ServerTraceEventSet
JScript dá suporte ao uso de operadores sobrecarregados, mas não à declaração de operadores novos.

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ServerTraceEventSet
A ServerTraceEventSet object value that specifies a set of server trace events.

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.