ObjectEvent Class

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

Inheritance Hierarchy

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

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

Syntax

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

The ObjectEvent type exposes the following members.

Properties

  Name Description
Public propertyStatic member Alter Gets an object event that can be included in the event set.
Public propertyStatic member Drop Gets an object event that can be included in the event set.

Top

Methods

  Name Description
Public methodStatic member Add Returns the object event set that is created by adding two object events.
Public methodStatic member BitwiseOr Creates a new object event set by performing a BitwiseOr operation on two ObjectEvent objects
Public method Equals Returns a value whether the ObjectEvent is equal to the specified object. (Overrides Object.Equals(Object).)
Public method GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method ToString Overrides ToString method in a ObjectEvent object. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Addition Creates a object event set by performing an addition operation on two ObjectEvent objects.
Public operatorStatic member BitwiseOr Creates an object event set by performing a bitwise OR operation on two ObjectEvent objects.
Public operatorStatic member Equality Creates a object event set by performing an equality operation on two ObjectEvent objects.
Public operatorStatic member Implicit(ObjectEvent to ObjectEventSet) :Microsoft.SqlServer.Management.Smo.ObjectEventSetCreates a new object event set by implicitly converting a ObjectEvent.
Public operatorStatic member Inequality Creates an object event set by performing an inequality operation on two ObjectEvent objects.

Top

Remarks

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

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.

Examples

Handling SMO Events

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace