Export (0) Print
Expand All

ObjectEventSet Class

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

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

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

public ref class ObjectEventSet sealed : public EventSetBase

The ObjectEventSet type exposes the following members.

  NameDescription
Public methodObjectEventSet()Initializes a new instance of the ObjectEventSet class.
Public methodObjectEventSet(ObjectEvent)Initializes a new instance of the ObjectEventSet class with the specified set of event.
Public methodObjectEventSet(array<ObjectEvent>)Initializes a new instance of the ObjectEventSet class with the specified set of events.
Public methodObjectEventSet(ObjectEventSet)Initializes a new instance of the ObjectEventSet class with a specified set of events.
Top

  NameDescription
Public propertyAlterGets 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.
Public propertyDropGets 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.
Public propertyNumberOfElementsGets the number of events in the event set. (Overrides EventSetBase::NumberOfElements.)
Protected propertyStorageGets or sets the bit array for event set storage. (Inherited from EventSetBase.)
Top

  NameDescription
Public methodAdd(ObjectEvent)Adds an ObjectEvent object to the ObjectEventSet object.
Public methodStatic memberAdd(ObjectEventSet, ObjectEvent)Adds an ObjectEvent object to a ObjectEventSet.
Public methodCopyReturns a copy of the ObjectEventSet object. (Overrides EventSetBase::Copy().)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodRemoveRemoves an event from the event set.
Public methodStatic memberSubtractSubtracts a ObjectEvent from a [T:Microsoft.SqlServer.Management.Smo.ObjectEventSet.]
Public methodToStringReturns a string that represents the ObjectEventSet object. (Overrides ObjectToString.)
Top

  NameDescription
Public operatorStatic memberAdditionCreates an object event set by performing an addition operation on an ObjectEvent object and an ObjectEventSet object.
Public operatorStatic memberSubtractionCreates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object.
Top

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft