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

30.7 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# and Visual Basic .NET, initialize sets Ice.ProgramName to the value of System.AppDomain.CurrentDomain.FriendlyName.
Ice uses the program name for log messages. Your application code can read this property and use it for similar purposes, for example, in 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 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 the program name to appear in Ice log messages, you must set Ice.ProgramName before initializing a Java communicator.
Table of Contents Previous Next
Logo