Table of Contents

Method SetParameter

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

SetParameter(string, object)

Sets the value of the specified parameter.

public virtual void SetParameter(string name, object value)

Parameters

name string

The parameter name.

value object

The value to set.

Examples

Element element = engine.FindElement(400, 2000);
element.SetParameter("Example Parameter", "Example Value");

Remarks

The specified value for the name argument should be the value of the Description tag of the parameter and not the value of the Name tag.

Exceptions

DataMinerException

name is invalid.

SetParameter(int, object)

Sets the value of the specified parameter.

public virtual void SetParameter(int pid, object value)

Parameters

pid int

The parameter ID.

value object

The value to set.

Examples

Element element = engine.FindElement(400, 2000);
element.SetParameter(100, "Example Value");

Exceptions

DataMinerException

pid is invalid.

SetParameter(string, string, object)

Sets the value of the specified cell.

public virtual void SetParameter(string name, string idx, object value)

Parameters

name string

The name of the column parameter.

idx string

The display key of the row.

value object

The value to set.

Examples

Element element = engine.FindElement(400, 2000);
element.SetParameter("Example Column Parameter", "Row 1", "Example Value");

Remarks

The specified value for the name argument should be the value of the Description tag of the parameter and not the value of the Name tag.

Exceptions

DataMinerException

name is invalid.

SetParameter(int, string, object)

Sets the value of the specified cell.

public virtual void SetParameter(int pid, string idx, object value)

Parameters

pid int

The ID of the column parameter.

idx string

The display key of the row.

value object

The value to set.

Examples

Element element = engine.FindElement(400, 2000);
element.SetParameter(5003, "Row 1", "Example Value");

Exceptions

DataMinerException

pid is invalid.