Here is where I am stuck:
private void b_persistence_Click(object sender, EventArgs e)
{
string vsname, vsaddress;
long vsport;
vsname = "Bolifo_COMM_PL4-12340";
vsaddress = "10.10.210.210";
vsport = 12340;
iControl.LocalLBVirtualServer[][] virt_serv = new iControl.LocalLBVirtualServer[1][];
iControl.CommonVirtualServerDefinition[][] vs_def = new iControl.CommonVirtualServerDefinition[1][];
vs_def[0] = new iControl.CommonVirtualServerDefinition[1];
vs_def[0][0] = new iControl.CommonVirtualServerDefinition();
vs_def[0][0].name = vsname;
vs_def[0][0].address = vsaddress;
vs_def[0][0].port = vsport;
string[] vsname1 = new string[] { vsname };
iControl.LocalLBPersistenceMode vs_persmode = iControl.LocalLBPersistenceMode.PERSISTENCE_MODE_DESTINATION_ADDRESS_AFFINITY;
iControl.LocalLBPersistenceRecord[][] persistence_records = new iControl.LocalLBPersistenceRecord[0][];
persistence_records = m_interfaces.LocalLBVirtualServer.get_persistence_record(vsname1, vs_persmode);
}
When compiling, I get the message "Argument '2': cannot convert from 'iControl.LocalLBPersistenceMode' to 'iControl.LocalLBPersistenceMode[]'"
When I try to declare vs_persmode as 'iControl.LocalLBPersistenceMode[], the compiler rejects that too. Please help.