Dela via


DatabaseEventArgs Class

The DatabaseEventArgs object represents the arguments passed by the event raised by the database.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Smo.SmoEventArgs
      Microsoft.SqlServer.Management.Smo.DatabaseEventArgs

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

Syntax

'Declaration
Public Class DatabaseEventArgs _
    Inherits SmoEventArgs
'Usage
Dim instance As DatabaseEventArgs
public class DatabaseEventArgs : SmoEventArgs
public ref class DatabaseEventArgs : public SmoEventArgs
type DatabaseEventArgs =  
    class
        inherit SmoEventArgs
    end
public class DatabaseEventArgs extends SmoEventArgs

The DatabaseEventArgs type exposes the following members.

Constructors

  Name Description
Public method DatabaseEventArgs The DatabaseEventArgs object represents the arguments passed by the event raised by the database.

Top

Properties

  Name Description
Public property DatabaseEventType Gets the type of database event.
Public property Name Gets the name of the database.
Public property SmoObject Gets the object that caused the database event.
Public property Urn Gets the Uniform Resource Name (URN) address of SMO event. (Inherited from SmoEventArgs.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

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.

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.