SendCCancelRequest Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void 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
   short nPresentationID = 1;   //PresentationID of message to cancel
   short nMessageID = 1;   //ID of message to cancel
   LEADDICOMNet1.SendCCancelRequest(LEADDICOMNet1.hNet, nPresentationID, nMessageID);
}