Exemple #1
0
 public SnmpVersion ValidateSnmpVersion(int version)
 {
     if (SnmpConstants.IsValidVersion(version) == true && version == 1)
     {
         return(SnmpVersion.Ver1);
     }
     else if (SnmpConstants.IsValidVersion(version) == true)
     {
         return(SnmpVersion.Ver2);
     }
     else
     {
         throw new Exception("Versão inválida");
     }
 }