Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how ppp Active Connection remove #84

Open
tajulchita opened this issue Dec 31, 2021 · 2 comments
Open

how ppp Active Connection remove #84

tajulchita opened this issue Dec 31, 2021 · 2 comments

Comments

@tajulchita
Copy link

tajulchita commented Dec 31, 2021

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 tajulchita changed the title ppp Active Connection remove how ppp Active Connection remove Dec 31, 2021
@uniqueitmail
Copy link

Please help this issues,

how ppp Active Connection remove

Thanks.

@Deantwo
Copy link
Contributor

Deantwo commented Mar 6, 2024

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants