You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i m using tik4net. I need to add elements in these two lists (screenshot). I didn't found any classes describing these lists in Objects.Interfaces.
How to add elements in thsese lists?
The text was updated successfully, but these errors were encountered:
I haven't tried the Objects portion of this library, but doing it with normal API commands is simple.
Example code:
TikConnectioncon=ConnectionFactory.OpenConnection(Type.Api,_host,_username,_password);ITikCommandcmd=conn.CreateCommand("/interface/list/add",conn.Connection.CreateParameter("name",_listName));cmd.ExecuteNonQuery();System.Diagnostics.Debug.WriteLine($"Interface list ({_listName}) created.");ITikCommandcmd=conn.CreateCommand("/interface/list/add",conn.Connection.CreateParameter("list",_listName),conn.Connection.CreateParameter("interface",_interfaceName));cmd.ExecuteNonQuery();System.Diagnostics.Debug.WriteLine($"Interface list ({_listName}) member ({_interfaceName}) created.");
This is untested, but it should be easy to get working from here.
Hi, i m using tik4net. I need to add elements in these two lists (screenshot). I didn't found any classes describing these lists in Objects.Interfaces.
How to add elements in thsese lists?
The text was updated successfully, but these errors were encountered: