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.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public string GetComponent(
	string component
)

Parameters

component  String
The name of the component

Return Value

String
The value of the component
Example
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