ObjectEventSet ObjectEventSet ObjectEventSet Class

Definition

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

public ref class ObjectEventSet sealed : Microsoft::SqlServer::Management::Smo::EventSetBase
public sealed class ObjectEventSet : Microsoft.SqlServer.Management.Smo.EventSetBase
Public NotInheritable Class ObjectEventSet
Inherits EventSetBase
Inheritance
ObjectEventSetObjectEventSetObjectEventSet

Examples

Handling SMO Events

Remarks

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.

Constructors

ObjectEventSet() ObjectEventSet() ObjectEventSet()

Initializes a new instance of the ObjectEventSet class.

ObjectEventSet(ObjectEvent) ObjectEventSet(ObjectEvent) ObjectEventSet(ObjectEvent)

Initializes a new instance of the ObjectEventSet class with the specified set of event.

ObjectEventSet(ObjectEventSet) ObjectEventSet(ObjectEventSet) ObjectEventSet(ObjectEventSet)

Initializes a new instance of the ObjectEventSet class with a specified set of events.

ObjectEventSet(ObjectEvent[]) ObjectEventSet(ObjectEvent[]) ObjectEventSet(ObjectEvent[])

Initializes a new instance of the ObjectEventSet class with the specified set of events.

Properties

Alter Alter 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.

Drop Drop 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.

NumberOfElements NumberOfElements NumberOfElements

Gets the number of events in the event set.

Storage Storage Storage

Gets or sets the bit array for event set storage.

(Inherited from EventSetBase)

Methods

Add(ObjectEvent) Add(ObjectEvent) Add(ObjectEvent)

Adds an ObjectEvent object to the ObjectEventSet object.

Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent) Add(ObjectEventSet, ObjectEvent)

Adds an ObjectEvent object to a ObjectEventSet.

Copy() Copy() Copy()

Returns a copy of the ObjectEventSet object.

FitsMask(EventSetBase) FitsMask(EventSetBase) FitsMask(EventSetBase)

Specifies whether the EventSetBase object fits the specified mask.

(Inherited from EventSetBase)
HasCommonBits(EventSetBase) HasCommonBits(EventSetBase) HasCommonBits(EventSetBase)

Specifies whether the EventSetBase object has common bits with another specified EventSetBase object.

(Inherited from EventSetBase)
Remove(ObjectEvent) Remove(ObjectEvent) Remove(ObjectEvent)

Removes an event from the event set.

SetValue(EventSetBase, Boolean) SetValue(EventSetBase, Boolean) SetValue(EventSetBase, Boolean)

Sets the bit value at the specified index position.

(Inherited from EventSetBase)
Subtract(ObjectEventSet, ObjectEvent) Subtract(ObjectEventSet, ObjectEvent) Subtract(ObjectEventSet, ObjectEvent)

Subtracts a ObjectEvent from a ObjectEventSet

ToString() ToString() ToString()

Returns a string that represents the ObjectEventSet object.

Operators

Addition(ObjectEventSet, ObjectEvent) Addition(ObjectEventSet, ObjectEvent) Addition(ObjectEventSet, ObjectEvent)

Creates an object event set by performing an addition operation on an ObjectEvent object and an ObjectEventSet object.

Subtraction(ObjectEventSet, ObjectEvent) Subtraction(ObjectEventSet, ObjectEvent) Subtraction(ObjectEventSet, ObjectEvent)

Creates an object event set by performing a subtraction operation on an ObjectEvent object and an ObjectEventSet object.

Applies to