c# - How do I list the available labels of a Project? -


it's first time develop .net winforms application using vault client api functionalities. want use vault client api list of labels per project.

i found method serveroperations.processcommandfindlabels() in vaultclientintegrationlib.dll don't have clue how parameters should successful result.

any appreciated.

after many attempts can labels of project running code below.

i added 2 dll's (vaultlib.dll , vaultclientintegrationlib.dll) under references in visual studio project , added 2 using statements (in class)

using vaultlib; using vaultclientintegrationlib; 

i've added following code in static method

serveroperations.client.loginoptions.url = url; serveroperations.client.loginoptions.user = user; serveroperations.client.loginoptions.password = pass; serveroperations.client.loginoptions.repository = rep; serveroperations.login(); serveroperations.client.autocommit = true;  string prjpath = "$/projectpath"; vaultlabelitemx[] arlabelitems = null;  int nretcode = serveroperations.processcommandfindlabels("*", prjpath, false, 1000, true, true, vaultfindinfilesdefine.patternmatch.wildcard, out arlabelitems);  messagebox.show(arlabelitems.count().tostring()); // print how labels found  foreach (var item in arlabelitems) {    messagebox.show(arlabelitems[i].label.tostring()); // show label  } 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -