setString

Set a string value in the dictionary.

virtual void setString(const string &key, const string &value) = 0;

Parameters

key: The key to be looked up in the dictionary.

value: The value to be associated with key in the dictionary.

Return Value

None.

Remarks

Key is associated with the value in the dictionary. If key already exists in the dictionary then the old value is replaced by value. If key is not a key in the dictionary then a new name value pair is added to the dictionary.

Example

string host = "pc1.domain.com";

setString("hostName", host);

 

// Or

 

setString("hostName", "192.168.33.1");

See also: getString

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant