StatementEventArgs Class
The StatementEventArgs class represents the arguments used when a statement event is raised.
Inheritance Hierarchy
Object
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 | |
---|---|---|
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 | |
---|---|---|
SqlStatement | Gets the Transact-SQL statement that caused the statement event. | |
TimeStamp | Gets the time and date when the statement event occurred. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | Returns a String value that represents the StatementEventArgs object. (Overrides ObjectToString.) |
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
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