Class UserParametersListHelper
Inheritance
UserParametersListHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class UserParametersListHelper
Methods
Add(ComWrapper<ICamIpcUserParametersList>, string, string, string)
Add a parameter. If a parameter with the same name already exists, its
Value and Comment are updated. Returns the added or updated parameter.
Declaration
public static ComWrapper<ICamIpcUserParameter> Add(this ComWrapper<ICamIpcUserParametersList> listCom, string name, string value, string comment = "")
Parameters
Returns
Count(ComWrapper<ICamIpcUserParametersList>)
Number of user parameters.
Declaration
public static int Count(this ComWrapper<ICamIpcUserParametersList> listCom)
Parameters
Returns
Delete(ComWrapper<ICamIpcUserParametersList>, string)
Delete the parameter with the given name. Returns false if there was no such parameter.
Declaration
public static bool Delete(this ComWrapper<ICamIpcUserParametersList> listCom, string name)
Parameters
Returns
FindByName(ComWrapper<ICamIpcUserParametersList>, string)
Parameter with the given name, or a wrapper around nil (check IsNull) if not found.
Declaration
public static ComWrapper<ICamIpcUserParameter> FindByName(this ComWrapper<ICamIpcUserParametersList> listCom, string name)
Parameters
Returns
GetItem(ComWrapper<ICamIpcUserParametersList>, int)
Parameter at the given index. Throws if the index is out of range.
Declaration
public static ComWrapper<ICamIpcUserParameter> GetItem(this ComWrapper<ICamIpcUserParametersList> listCom, int index)
Parameters
Returns
IndexOf(ComWrapper<ICamIpcUserParametersList>, string)
Index of the parameter with the given name, or -1 if not found.
Declaration
public static int IndexOf(this ComWrapper<ICamIpcUserParametersList> listCom, string name)
Parameters
Returns