NetReceiveAssociateReject Example for C#

private void LEADDICOMNet1_NetReceiveAssociateReject(int hNet, short nResult, short nSource, short nReason)
{
   MessageBox.Show("Associate Request was rejected: Result= " + System.Convert.ToString(nResult) + " Source=" + System.Convert.ToString(nSource) + " Reason=" + System.Convert.ToString(nReason));
}