Method DeleteConnection
DeleteConnection(string, bool)
Deletes the connection with the specified name.
public bool DeleteConnection(string connectionName, bool deleteBothConnections)
Parameters
connectionName
stringThe name of the connection to delete.
deleteBothConnections
booltrue
if the connection entry should be removed from both ends of the connection; otherwise,false
.
Returns
- bool
true
if the deletion succeeded; otherwise,false
.
DeleteConnection(int, bool)
Deletes the connection with the specified ID.
public bool DeleteConnection(int connectionId, bool deleteBothConnections)
Parameters
connectionId
intThe ID of the connection to delete.
deleteBothConnections
booltrue
if the connection entry should be removed from both ends of the connection; otherwise,false
.
Returns
- bool
true
if the deletion succeeded; otherwise,false
.