SendAssociateRequest Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestSendAssociateRequest ( )
{
   //create the Associate Class as Request LEADDICOMNet1.CreateAssociate(true);
   //use default for association LEADDICOMNet1.DefaultAssociate(LEADDICOMNet1.hPDU);
   LEADDICOMNet1.SetCalling(LEADDICOMNet1.hPDU, "MI_CLIENT");
   LEADDICOMNet1.SetCalled(LEADDICOMNet1.hPDU, "MI_SERVER");
   //this shows a client sending to its server
   LEADDICOMNet1.SendAssociateRequest(LEADDICOMNet1.hNet);
   //now we can free the class
   LEADDICOMNet1.FreeAssociate ( LEADDICOMNet1.hPDU ) ;
}