NetReceiveCCancelRequest Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void LEADDICOMNet1_NetReceiveCCancelRequest(int hNet, short nPresentationID, short nMessageID)
{
   //note, this sample AE ignores C-CANCEL-REQUEST commands for simplicity
   MessageBox.Show("C-CANCEL-REQUEST was received - " + LEADDICOMNet1.GetPeerAddress(hNet));
}