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