| 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
)
Public Function GetComponent (
component As String
) As String
public:
String^ GetComponent(
String^ component
)
member GetComponent :
component : string -> string
Parameters
- component
- Type: SystemString
The name of the component
Return Value
Type:
StringThe value of the component
Examples 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