Compartilhar via


Classe ObjectEventSet

The ObjectEventSet object represents a SQL Server set of object events.

Hierarquia de herança

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .EventSetBase
    Microsoft.SqlServer.Management.Smo..::..ObjectEventSet

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

Sintaxe

'Declaração
Public NotInheritable Class ObjectEventSet _
    Inherits EventSetBase
'Uso
Dim instance As ObjectEventSet
public sealed class ObjectEventSet : EventSetBase
public ref class ObjectEventSet sealed : public EventSetBase
[<SealedAttribute>]
type ObjectEventSet =  
    class
        inherit EventSetBase
    end
public final class ObjectEventSet extends EventSetBase

O tipo ObjectEventSet expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ObjectEventSet() () () () Initializes a new instance of the ObjectEventSet class.
Método público ObjectEventSet(ObjectEvent) Initializes a new instance of the ObjectEventSet class with the specified set of event.
Método público ObjectEventSet(array<ObjectEvent> [] () [] []) Initializes a new instance of the ObjectEventSet class with the specified set of events.
Método público ObjectEventSet(ObjectEventSet) Initializes a new instance of the ObjectEventSet class with a specified set of events.

Início

Propriedades

  Nome Descrição
Propriedade pública Alter Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the properties of an object are modified.
Propriedade pública Drop Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is dropped.
Propriedade pública NumberOfElements Gets the number of events in the event set. (Substitui EventSetBase. . :: . .NumberOfElements.)
Propriedade protegida Storage Gets or sets the bit array for event set storage. (Herdado de EventSetBase.)

Início

Métodos

  Nome Descrição
Método público Add(ObjectEvent) Adds an ObjectEvent object to the ObjectEventSet object.
Método públicoMembro estático Add(ObjectEventSet, ObjectEvent) Adds a ObjectEvent object to a ObjectEventSet.
Método público Copy Returns a copy of the ObjectEventSet object. (Substitui EventSetBase. . :: . .Copy() () () ().)
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método protegido FitsMask Specifies whether the EventSetBase object fits the specified mask. (Herdado de EventSetBase.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (Herdado de EventSetBase.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público Remove Removes an event from the event set.
Método protegido SetValue Sets the bit value at the specified index position. (Herdado de EventSetBase.)
Método públicoMembro estático Subtract Subtracts a ObjectEvent from a [T:Microsoft.SqlServer.Management.Smo.ObjectEventSet.]
Método público ToString Returns a string that represents the ObjectEventSet object. (Substitui Object. . :: . .ToString() () () ().)

Início

Operadores

  Nome Descrição
Operador públicoMembro estático Addition Creates an object event set by performing an addition operation on an ObjectEvent object and an ObjectEventSet object.
Operador públicoMembro estático Subtraction Creates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object.

Início

Comentários

The events in the object event set are generated by various SMO objects that represent the SQL Server objects.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência