SendCCancelRequest Example for VB.NET

'LEADDICOMNet1 is a predefined LEADDicomNet object
Private Sub TestSendCCancelRequest()
   ' This example sends a C-Cancel Request to a server

   '
   'In this example:
   '1. A connection exists between client and server
   '2. An association exists between the client and server
   Dim nPresentationID As Short = 1
   'PresentationID of message to cancel
   Dim nMessageID As Short = 1
   'ID of message to cancel
   LEADDICOMNet1.SendCCancelRequest(LEADDICOMNet1.hNet, nPresentationID, nMessageID)
End Sub