IsActivated Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestIsActivated ( )
{
   string Out = null;
   //test the local computer's connection
   Out = "Activated: " + System.Convert.ToString(LEADDICOMNet1.IsActivated(LEADDICOMNet1.hNet));
   Out = Out + "\r"; Out = Out + "Connected: " + System.Convert.ToString(LEADDICOMNet1.IsConnected(LEADDICOMNet1.hNet));
   Out = Out + "\r"; Out = Out + "Associated: " + System.Convert.ToString(LEADDICOMNet1.IsAssociated(LEADDICOMNet1.hNet));
   MessageBox.Show(Out);
}