LogFileLocation 枚举

定义

确定 FileLogTraceListener 类用来写入其日志文件的预定义路径。Determines which predefined path the FileLogTraceListener class uses to write its log files.

public enum class LogFileLocation
public enum LogFileLocation
type LogFileLocation = 
Public Enum LogFileLocation
继承
LogFileLocation

字段

CommonApplicationDirectory 2

使用所有用户共享的应用程序数据的路径。Use the path for the application data that is shared among all users.

Custom 4

如果 CustomLocation 指定的字符串不为空,则使用该字符串作为路径。If the string specified by CustomLocation is not empty, then use it as the path. 否则,使用用户的应用程序数据的路径。Otherwise, use the path for a user's application data.

ExecutableDirectory 3

使用启动应用程序的可执行文件的路径。Use the path for the executable file that started the application.

LocalUserApplicationDirectory 1

使用用户的应用程序数据的路径。Use the path for a user's application data.

TempDirectory 0

使用当前系统的临时文件夹的路径。Use the path of the current system's temporary folder.

注解

将其中一个LogFileLocation枚举值Location分配给属性, 以FileLogTraceListener指定类用来写入其日志文件的预定义路径。Assign one of the LogFileLocation enumeration values to the Location property to specify which predefined path the FileLogTraceListener class uses to write its log files.

适用于

另请参阅