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

30.7 The Ice.ProgramName property

For C++, Python, and Ruby, initialize sets the Ice.ProgramName property to the name of the current program (argv[0]). In C#, initialize sets Ice.ProgramName to the value of System.AppDomain.CurrentDomain.FriendlyName.
Your application code can read this property and use it for activities such as logging diagnostic or trace messages. (See Section 30.8.1 for how to access the property value in your program.)
Even though Ice.ProgramName is initialized for you, you can still override 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