Partilhar via


DatabaseEvent.Add Method

Returns the database event set that was created by adding two database events together.

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

Syntax

'Declaration
Public Shared Function Add ( _
    eventLeft As DatabaseEvent, _
    eventRight As DatabaseEvent _
) As DatabaseEventSet
public static DatabaseEventSet Add (
    DatabaseEvent eventLeft,
    DatabaseEvent eventRight
)
public:
static DatabaseEventSet^ Add (
    DatabaseEvent^ eventLeft, 
    DatabaseEvent^ eventRight
)
public static DatabaseEventSet Add (
    DatabaseEvent eventLeft, 
    DatabaseEvent eventRight
)
public static function Add (
    eventLeft : DatabaseEvent, 
    eventRight : DatabaseEvent
) : DatabaseEventSet

Parameters

  • eventLeft
    A DatabaseEvent object that specifies one database event.
  • eventRight
    A DatabaseEvent object that specifies the other database event.

Return Value

A DatabaseEventSet object value that specifies a set of database events that are created by adding two database events.

Remarks

Updated text:

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET

Thread Safety

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

DatabaseEvent Class
DatabaseEvent Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Handling SMO Events

Change History

Release

History

New content:
  • The Add method has been added to the DatabaseEvent class.