SmoEventArgs Class

The SmoEventArgs object provides programmatic access to the arguments used to report the events that occur in SMO applications.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Smo.SmoEventArgs
      Microsoft.SqlServer.Management.Smo.DatabaseEventArgs
      Microsoft.SqlServer.Management.Smo.ObjectAlteredEventArgs
      Microsoft.SqlServer.Management.Smo.ObjectCreatedEventArgs
      Microsoft.SqlServer.Management.Smo.ObjectDroppedEventArgs
      Microsoft.SqlServer.Management.Smo.ObjectRenamedEventArgs

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

Syntax

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

The SmoEventArgs type exposes the following members.

Constructors

  Name Description
Public method SmoEventArgs Initializes a new instance of the SmoEventArgs class with the specified Uniform Resource Name (URN) address.

Top

Properties

  Name Description
Public property Urn Gets the Uniform Resource Name (URN) address of SMO event.

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.

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