DB2®ConnectionStringBuilder.HostVarParameters Property

Gets or sets the value indicating whether host variable support are enabled. Host variables are parameters prefixed with a colon (:).

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

Syntax


[Visual Basic]
Public Property HostVarParameters As Boolean
[C#]
public bool HostVarParameters {get;}
[C++]
public: __property bool* get_HostVarParameters();
[JScript]
public function get HostVarParameters() : Boolean;

Property value

true if host variable support is enabled; otherwise false. The default value is false.

Remarks

Combining parameter types is not supported. SQL statements that use host variables cannot contain named parameters or positioned parameters.