Forum Discussion
Sep 16, 2013
I'm not quite sure I'm getting what you are asking but I'll give a shot at a reply. I'm assuming you are asking how to iterate through the VSPersist array to get at the persistence profile information. If that's the case, then you'll need to pull the 2-d array apart to get at the elements. The first dimension of the array is for each virtual server passed in. The second dimension is for the list of persistence profiles for that given virtual. To continue your example, I'd do something like this
for (int rowNum = 1; rowNum <= Vslist.Length; rowNum++)
{
TableRow tempRow = new TableRow();
TableCell tempCell = new TableCell();
tempCell.Text = String.Format("{0}", Vslist[rowNum - 1]);
// Extract the list of profiles for the given virtual
LocalLBVirtualServerVirtualServerPersistence [] profilesA = VSPersist[rowNum - 1];
// Iterate through each of the profiles
for(int j=0; j < profilesA.Length; j++)
{
LocalLBVirtualServerVirtualServerPersistence profiles = profilesA[j];
String profile_name = profiles.profile_name;
Boolean default_profile = profiles.default_profile;
}
...
Hopefully this is what you were getting at. If not, comment and let me know...
-Joe