CapturedSql 类
The CapturedSql class represents the Transact-SQL commands that are sent to the instance of SQL Server by way of the referenced connection. However, they are then redirected to a buffer instead of running immediately on the instance of SQL Server.
继承层次结构
System.Object
Microsoft.SqlServer.Management.Common.CapturedSql
命名空间: Microsoft.SqlServer.Management.Common
程序集: Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)
语法
声明
Public NotInheritable Class CapturedSql
用法
Dim instance As CapturedSql
public sealed class CapturedSql
public ref class CapturedSql sealed
[<SealedAttribute>]
type CapturedSql = class end
public final class CapturedSql
CapturedSql 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Text | Gets the captured Transact-SQL commands in the buffer. |
页首
方法
名称 | 说明 | |
---|---|---|
Add | Adds a Transact-SQL statement to the captured Transact-SQL commands in the buffer. | |
Clear | Clears the buffer that contains the captured Transact-SQL commands. | |
Equals | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
ToString | (从 Object 继承。) |
页首
注释
The capturedSql object is served by the connectionmanager object.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。
示例
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。