Share via


WstCommand Class

[This is internal Microsoft documentation - Do not distribute.]

WstCommand is Webstore's version of SqlCommand object. Uses the WstConnection "virtual" connection to a Webstore Application. A SqlConnection is not obtained until one of the ExecuteXXX() methods are called.

Namespace: Microsoft.Webstore.WstClient
Assembly: ICL (in icl.dll)

Syntax

'Declaration

  Public NotInheritable Class WstCommand
    Inherits Component
    Implements IDbCommand, IDisposable
  public sealed class WstCommand : Component, IDbCommand, IDisposable

Remarks

The WstCommand class is used to issue commands against a specific Webstore application. The WstCommand can be configured to identify the partition and failover mode for the execution. At execution time, the WstCommand selects an appropriate SqlConnection from the WstConnection pool of connections and executes using the SqlCommand object. The result from the WstCommand.ExecuteReader() method is a WstDataReader. In this example, use of transactionscope allows for multiple insert statements to the SampleApp..UserInfo table within a transaction.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
     System.ComponentModel.Component
      Microsoft.Webstore.WstClient.WstCommand

Thread Safety

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

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

WstCommand Members
Microsoft.Webstore.WstClient Namespace