cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Configuration Items Value Function Signatures?

Nghia_Phan1
Star Contributor
Star Contributor

In Unity API:

To retrieve the value for a configuration item in code, execute the Application.Configuration.TryGetValue() method.

 

My questions are

The input parameter of this method will need one (string key) or two parameters (string key, out string value)?

The return value: either boolean (for two input parameters), or string value (for one input parameter)?

 

The API document does not provide details.

 

Thank you for your helps.

 

1 REPLY 1

George_Sialmas
Employee
Employee

Nghia

 

It should have two parameters.

 

app.Configuration.TryGetValue(unityConfigItemName, out unityConfigItemValue)

 

Hope this helps.

 

Regards,

George