DeleteConnection

ITcEventView

This method removes a connection a remote TcEventLogger on another PC that was established before by AddConnection.

HRESULT DeleteConnection(BSTR
strComputerName);

Parameters

strComputerName

[in] BSTR string that holds the name of the remote PC the EventView wants to disconnect from.

Return Values

S_OK

Function was successfully called

Visual Basic sample code

Option Explicit

' add the Beckhoff TcEvent View Library to the components
' place a TcEventView on the form, and assign the name
TcEventView1

Private Sub Form_Load()
 Call TcEventView1.DeleteConnection("BeltPC1")
End Sub

Remarks