Click or drag to resize

ConnectionStringGetComponent Method

Get an individual component part of the connection string

Namespace:  SanteDB.Core.Configuration.Data
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public string GetComponent(
	string component
)

Parameters

component
Type: SystemString
The name of the component

Return Value

Type: String
The value of the component
Examples
C#
var cstr = new ConnectionString("npgsql", "server=foo;database=bar;user=yosemite;password=Sam");
Console.Write(cstr.GetComponent("server"));
Console.Write(cstr.GetComponent("database"));
Output: foo bar
See Also