FindPresentationAbstract Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestFindPresentationAbstract ( )
{
   const string UID_VERIFICATION_CLASS = "1.2.840.10008.1.1"; // Verification SOP Class
   short nID = 0;
   int hPDU = 0;
   //get the associate object for this client computer's connection
   hPDU = LEADDICOMNet1.GetAssociate(LEADDICOMNet1.hNet);
   //find the id for UID_VERIFICATION_CLASS within this association
   //if it is supported by the association
   nID = LEADDICOMNet1.FindPresentationAbstract(hPDU, UID_VERIFICATION_CLASS);
   if (nID == 0)
      MessageBox.Show("Not Supported by this association!");
   else
      MessageBox.Show("Found: " + System.Convert.ToString(nID));
}