StatementEventArgs Class

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

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

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

public class StatementEventArgs : EventArgs

The StatementEventArgs type exposes the following members.

  NameDescription
Public methodStatementEventArgsInitializes a new instance of the StatementEventArgs class for the specified Transact-SQL statement at the specified time and date.
Top

  NameDescription
Public propertySqlStatementGets the Transact-SQL statement that caused the statement event.
Public propertyTimeStampGets the time and date when the statement event occurred.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a String value that represents the StatementEventArgs object. (Overrides Object.ToString().)
Top

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.

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

Community Additions

ADD
Show: