Table of Contents Previous Next
Logo
Ice Properties and Configuration : 30.8 The Ice.ProgramName property
Copyright © 2003-2010 ZeroC, Inc.

30.8 The Ice.ProgramName property

For C++, Python, and Ruby, initialize sets the Ice.ProgramName prop­erty to the name of the current program (argv[0]). In C#, initialize sets Ice.ProgramName to the value of System.AppDomain.CurrentDo­main.FriendlyName.
Your application code can read this property and use it for activities such as logging diagnostic or trace messages. (See Section 30.9.1 for how to access the property value in your program.)
Even though Ice.ProgramName is initialized for you, you can still over­ride its value from a configuration file or by setting the property on the command line.
For Java, the program name is not supplied as part of the argument vector—if you want to use the Ice.ProgramName property in your application, you must set it before initializing a communicator.

Table of Contents Previous Next
Logo