| ConnectionStringSetComponent Method |
Set the specified component of the connection string to value or adds it if there is no current value
Namespace:
SanteDB.Core.Configuration.Data
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax public void SetComponent(
string component,
string value
)
Public Sub SetComponent (
component As String,
value As String
)
public:
void SetComponent(
String^ component,
String^ value
)
member SetComponent :
component : string *
value : string -> unit
Parameters
- component
- Type: SystemString
The component of the connection string to set - value
- Type: SystemString
The value of the connection string to set
Examples var cstr = new ConnectionString("npgsql", "Server=foo;Database=bar;");
cstr.SetComponent("server","foo.bar");
cstr.SetComponent("user","yosemite");
See Also