Condividi tramite


Classe ObjectEvent

The ObjectEvent object represents the of SQL Server object events that can be included in an object event set.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Management.Smo.ObjectEvent

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class ObjectEvent
'Utilizzo
Dim instance As ObjectEvent
public sealed class ObjectEvent
public ref class ObjectEvent sealed
[<SealedAttribute>]
type ObjectEvent =  class end
public final class ObjectEvent

Nel tipo ObjectEvent sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblicaMembro statico Alter Gets an object event that can be included in the event set.
Proprietà pubblicaMembro statico Drop Gets an object event that can be included in the event set.

In alto

Metodi

  Nome Descrizione
Metodo pubblicoMembro statico Add Returns the object event set that is created by adding two object events.
Metodo pubblicoMembro statico BitwiseOr Creates a new object event set by performing a BitwiseOr operation on two ObjectEvent objects
Metodo pubblico Equals Returns a value whether the ObjectEvent is equal to the specified object. Esegue l'override di Object.Equals(Object).
Metodo pubblico GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. Esegue l'override di Object.GetHashCode().
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico ToString Overrides ToString method in a ObjectEvent object. Esegue l'override di Object.ToString().

In alto

Operatori

  Nome Descrizione
Operatore pubblicoMembro statico Addition Creates a object event set by performing an addition operation on two ObjectEvent objects.
Operatore pubblicoMembro statico BitwiseOr Creates an object event set by performing a bitwise OR operation on two ObjectEvent objects.
Operatore pubblicoMembro statico Equality Creates a object event set by performing an equality operation on two ObjectEvent objects.
Operatore pubblicoMembro statico Implicit(ObjectEvent to ObjectEventSet) :Microsoft.SqlServer.Management.Smo.ObjectEventSetCreates a new object event set by implicitly converting a ObjectEvent.
Operatore pubblicoMembro statico Inequality Creates an object event set by performing an inequality operation on two ObjectEvent objects.

In alto

Osservazioni

The ObjectEvent object contains a property for each event to which the object can respond. The actual set of events is specified using the ObjectEventSet object.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Esempi

Gestione degli eventi SMO

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Smo