CapturedSql Members

The CapturedSql class represents the Transact-SQL commands that are sent to the instance of Microsoft SQL Server by way of the referenced connection but then redirected to a buffer rather than run immediately on the instance of SQL Server.

The following tables list the members exposed by the CapturedSql type.

Public Properties

  名称 Description
ms218505.pubproperty(zh-cn,SQL.90).gif Text Gets the captured Transact-SQL commands in the buffer.

顶部

Public Methods

(see also Protected Methods )

  名称 Description
ms218505.pubmethod(zh-cn,SQL.90).gif Add Adds a Transact-SQL statement to the captured Transact-SQL commands in the buffer.
ms218505.pubmethod(zh-cn,SQL.90).gif Clear Clears the buffer that contains the captured Transact-SQL commands.
ms218505.pubmethod(zh-cn,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms218505.pubmethod(zh-cn,SQL.90).gif GetHashCode  (inherited from Object )
ms218505.pubmethod(zh-cn,SQL.90).gif GetType  (inherited from Object )
ms218505.pubmethod(zh-cn,SQL.90).gifms218505.static(zh-cn,SQL.90).gif ReferenceEquals  (inherited from Object )
ms218505.pubmethod(zh-cn,SQL.90).gif ToString  (inherited from Object )

顶部

Protected Methods

  名称 Description
ms218505.protmethod(zh-cn,SQL.90).gif Finalize  (inherited from Object )
ms218505.protmethod(zh-cn,SQL.90).gif MemberwiseClone  (inherited from Object )

顶部

请参阅

参考

CapturedSql Class
Microsoft.SqlServer.Management.Common Namespace