مشاركة عبر


StatementEventArgs Class

The StatementEventArgs class represents the arguments used when a statement event is raised.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Common.StatementEventArgs

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

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

The StatementEventArgs type exposes the following members.

Constructors

  Name Description
Public method StatementEventArgs Initializes a new instance of the StatementEventArgs class for the specified Transact-SQL statement at the specified time and date.

Top

Properties

  Name Description
Public property SqlStatement Gets the Transact-SQL statement that caused the statement event.
Public property TimeStamp Gets the time and date when the statement event occurred.

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 Returns a String value that represents the StatementEventArgs object. (Overrides Object.ToString().)

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.Common Namespace

Other Resources

Handling SMO Events