DB2ConnectionStringBuilder.captureMode Property

Gets or sets the value that determines if dynamically executed statements are captured for client optimization using pureQuery. An error is thrown if captureMode=on while executionMode=STATIC.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Property captureMode As String
[C#]
public String captureMode {get; set;}
[C++]
public: __property string* get_captureMode();
public: __property void set_captureMode(string*);
[JScript]
public function get captureMode() : String;
public function set captureMode(String);

Property value

on if dynamic statements are to be captured for client optimization; otherwise off.

The default value of this property is off, dynamic queries are not captured.

Note: If captureMode is set to on and executionMode is static, an invalid attribute exception will be thrown when attempting to open a connection.

Data server restrictions

This property applies only to Db2® data servers.