CreateAssociate Example for C#
//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestCreateAssociate ( )
{
//create the Associate Class as Request
LEADDICOMNet1.CreateAssociate(true);
//set the Associate to the default
LEADDICOMNet1.DefaultAssociate(LEADDICOMNet1.hPDU);
MessageBox.Show("Associate Request? " + System.Convert.ToString(LEADDICOMNet1.IsRequest(LEADDICOMNet1.hPDU)));
//reset the Associate class to Accept
LEADDICOMNet1.ResetAssociate(LEADDICOMNet1.hPDU,
false);
//set the Associate to the default
LEADDICOMNet1.DefaultAssociate(LEADDICOMNet1.hPDU);
MessageBox.Show("Associate Request? " + System.Convert.ToString(LEADDICOMNet1.IsRequest(LEADDICOMNet1.hPDU)));
//free the Associate class
//LEADDICOMNet1.FreeAssociate
( LEADDICOMNet1.hPDU )
}