Author |
Message
|
Wayne89 |
Posted: Wed Feb 11, 2015 7:24 am Post subject: Environment Variables in a .NET Compute Node |
|
|
Newbie
Joined: 11 Feb 2015 Posts: 5
|
Hi,
I need to get a string value from Environment Variable in a .NET Compute Node. I’ve used
string SResult = Environment.GetEnvironmentVariable("variable", EnvironmentVariableTarget.Process);
but there is no data in “SResult”
Can anyone tell me how can we get a string value in .Net CN??
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 11, 2015 7:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Which environment?
The Environment message tree?
or the command line environment that the broker is running under? |
|
Back to top |
|
 |
Wayne89 |
Posted: Wed Feb 11, 2015 7:43 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2015 Posts: 5
|
mqjeff wrote: |
Which environment?
The Environment message tree?
or the command line environment that the broker is running under? |
Environment Message Tree |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 11, 2015 8:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well.
GetEnvironmentVariable is a Microsoft API call that retrieves data from the command line environment.
The Environment message tree is a message tree, that you access using the same IIB methods you use to access fields under Root. |
|
Back to top |
|
 |
Wayne89 |
Posted: Wed Feb 11, 2015 8:46 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2015 Posts: 5
|
mqjeff wrote: |
Well.
GetEnvironmentVariable is a Microsoft API call that retrieves data from the command line environment.
The Environment message tree is a message tree, that you access using the same IIB methods you use to access fields under Root. |
Jeff, can you please give me a sample code to Retrieve Data from environment message tree in a .net compute node.
Thank you! |
|
Back to top |
|
 |
mgk |
Posted: Wed Feb 11, 2015 9:12 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
|
Back to top |
|
 |
Wayne89 |
Posted: Fri Feb 20, 2015 8:31 am Post subject: |
|
|
Newbie
Joined: 11 Feb 2015 Posts: 5
|
The examples helped.
Thank you! |
|
Back to top |
|
 |
|