Method UpdateConnection
UpdateConnection(int, string, int, string, int, int, int, bool)
Updates the specified connection.
public bool UpdateConnection(int ConnectionId, string newSourceName, int newSourceInterfaceId, string newDestinationName, int newDestinationDMAId, int newDestinationElementId, int newDestinationInterfaceId, bool updateBothConnections)
Parameters
ConnectionIdintThe ID of the connection.
newSourceNamestringThe new name to apply to this connection on the source.
newSourceInterfaceIdintThe new ID of the source interface.
newDestinationNamestringThe new name to apply to this connection on the destination.
newDestinationDMAIdintThe DataMiner Agent ID of the new destination element.
newDestinationElementIdintThe element ID of the new destination element.
newDestinationInterfaceIdintThe ID of the new destination interface.
updateBothConnectionsbooltrueif the connection entry should be updated at both ends of the connection; otherwise,false.
Returns
- bool
trueif the update succeeded; otherwise,false.
UpdateConnection(int, string, int, string, int, int, int, string, bool)
Updates the specified connection.
public bool UpdateConnection(int ConnectionId, string newSourceName, int newSourceInterfaceId, string newDestinationName, int newDestinationDMAId, int newDestinationElementId, int newDestinationInterfaceId, string newFilter, bool updateBothConnections)
Parameters
ConnectionIdintThe ID of the connection.
newSourceNamestringThe new name to apply to this connection on the source.
newSourceInterfaceIdintThe new ID of the source interface.
newDestinationNamestringThe new name to apply to this connection on the destination.
newDestinationDMAIdintThe DataMiner Agent ID of the new destination element.
newDestinationElementIdintThe element ID of the new destination element.
newDestinationInterfaceIdintThe ID of the new destination interface.
newFilterstringThe new connection filter.
updateBothConnectionsbooltrueif the connection entry should be updated at both ends of the connection; otherwise,false.
Returns
- bool
trueif the update succeeded; otherwise,false.
UpdateConnection(int, string, int, string, int, int, int, string, bool, out int)
Updates the specified connection.
public bool UpdateConnection(int ConnectionId, string newSourceName, int newSourceInterfaceId, string newDestinationName, int newDestinationDMAId, int newDestinationElementId, int newDestinationInterfaceId, string newFilter, bool updateBothConnections, out int destPK)
Parameters
ConnectionIdintThe ID of the connection.
newSourceNamestringThe new name to apply to this connection on the source.
newSourceInterfaceIdintThe new ID of the source interface.
newDestinationNamestringThe new name to apply to this connection on the destination.
newDestinationDMAIdintThe DataMiner Agent ID of the new destination element.
newDestinationElementIdintThe element ID of the new destination element.
newDestinationInterfaceIdintThe ID of the new destination interface.
newFilterstringThe new connection filter.
updateBothConnectionsbooltrueif the connection entry should be updated at both ends of the connection; otherwise,false.destPKintThe ID (primary key) of the destination interface.
Returns
- bool
trueif the update succeeded; otherwise,false.
Remarks
Feature introduced in DataMiner 8.5.3 (RN 9297).
UpdateConnection(int, string, int, string, int, int, int, string, bool, out ConnectivityConnection, int)
Updates the specified connection.
public bool UpdateConnection(int ConnectionId, string newSourceName, int newSourceInterfaceId, string newDestinationName, int newDestinationDMAId, int newDestinationElementId, int newDestinationInterfaceId, string newFilter, bool updateBothConnections, out ConnectivityConnection destConn, int timeoutMs)
Parameters
ConnectionIdintThe ID of the connection.
newSourceNamestringThe new name to apply to this connection on the source.
newSourceInterfaceIdintThe new ID of the source interface.
newDestinationNamestringThe new name to apply to this connection on the destination.
newDestinationDMAIdintThe DataMiner Agent ID of the new destination element.
newDestinationElementIdintThe element ID of the new destination element.
newDestinationInterfaceIdintThe ID of the new destination interface.
newFilterstringThe new connection filter.
updateBothConnectionsbooltrueif the connection entry should be updated at both ends of the connection; otherwise,false.destConnConnectivityConnectionThe destination connection.
timeoutMsintThe update timeout.
Returns
- bool
trueif the update succeeded; otherwise,false.
Remarks
In case the connection was not updated within the specified timeout, false will be returned. However, the message will still be handled by DataMiner.
Feature introduced in DataMiner 8.5.3 (RN 9297).