会影响这项决定的因素包括对于限制特定型别存取其他型别的需求、组态、安全性,以及当不再需要程序码时将它卸载的能力。
Factors influencing this decision include requirements for restricting a particular type's access to other types, configuration, security, and the ability to unload code when it is no longer needed.
下列程序码提供应用程序组态档的简单范例。
The following code provides a simple example of an application configuration file.
您可以在应用程序组态档或程序码中建立追踪接听程序。
You can create trace listeners in an application configuration file or in your code.
建议您使用应用程序组态档,因为这些档案可让您加入、修改或移除追踪接听程序,而不必变更程序码。
We recommend the use of application configuration files, because they let you add, modify, or remove trace listeners without having to change your code.
如果您要从程序码所在的应用程序中取得组态资讯,请使用静态方法,这样会较快处理。
If you are going to obtain configuration information from the application in which your code resides, use the static method, which processes faster.
下表列出每种预设组态类型之程序码模型物件的预设属性设定。
The following tables list the code model object's default property Settings for each configuration type.
当应用程序第一次执行建立参数执行个体的程序码时,会检查组态档是否有关于具名参数的追踪层级资讯。
When your application executes the code that creates an instance of a switch for the first time, it checks the configuration file for trace-level information about the named switch.
程序码剖析工具组态属性还可用于控制在进行程序码剖析期间收集的资料量。
Profiling Tools configuration properties can also be used to control how much data is collected in a profiling run.
虽然您可在程序码中设定追踪层级和其他组态选项,但是我们建议您使用组态档来管理参数的状态。
Although you can set trace levels and other configuration options in code, it is recommended that you use the configuration file to manage the state of your switches.
虽然您可在程序码中设定追踪层级和其他组态选项,但是我们建议您使用组态档来管理参数的状态。
Although you can set trace levels and other configuration options in code, it is recommended that you use the configuration file to manage the state of your switches.
应用推荐