Connection.from_string


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "5.0.2" ) ]
public Connection.from_string (string? provider_name, string cnc_string, string? auth_string, ConnectionOptions options) throws Error

This function is similar to open_from_string, except it does not actually open the connection, you have to open it using open.

Parameters:

provider_name

provider ID to connect to, or null

cnc_string

connection string.

auth_string

authentication string, or null

options

options for the connection (see ConnectionOptions).

Returns:

a new Connection if connection opening was successful or null if there was an error.




2022 vala-language.org