tik4net icon indicating copy to clipboard operation
tik4net copied to clipboard

how ppp Active Connection remove

Open tajulchita opened this issue 3 years ago • 2 comments

I want to remove name from active connection list .

ITikCommand cmd = connection.CreateCommandAndParameters("ppp/active/remove ","name", active.Name); cmd.ExecuteNonQuery();

result is no such command plz, help me

tajulchita avatar Dec 31 '21 16:12 tajulchita

Please help this issues,

how ppp Active Connection remove

Thanks.

uniqueitmail avatar May 16 '23 21:05 uniqueitmail

Try

ITikCommand cmd = connection.CreateCommandAndParameters("ppp/active/remove ",".id", active.Name);
cmd.ExecuteNonQuery();

If that doesn't work, you will likely need to do a "ppp/active/print","name", active.Name first, and then use "ppp/active/remove ",".id", id with the returned ID.

ITikCommand cmd = connection.CreateCommandAndParameters("ppp/active/print","name", active.Name);
string id = cmd.ExecuteScaler(".id");
ITikCommand cmd = connection.CreateCommandAndParameters("ppp/active/remove",".id", id);
cmd.ExecuteNonQuery();

Deantwo avatar Mar 06 '24 21:03 Deantwo