SetConnectionProperty

Establishes the server connection configuration properties, such as host name and length of timeout.

Syntax

Sub setConnectionProperty(name As String, value As String) 

Parameters

  • Name — the name of the connection property, such as HOST
  • Value — the value for the name of the connection property, such as "www.myhost.com"

Results

Return codes — none.

Exceptions

  • ERROR-INVALID-COLUMN_NAME — an empty or null column name.
  • ERROR_INVALID_VALUE — A null value.

Example

set connection properties 
Dim server As New G1CLIENTLib.server 

server.setConnectionProperty server.HOST,"localhost" 
server.setConnectionProperty server.PORT, "8080"