Export (0) Print
Expand All

FileLogTraceListener.Location Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets location for the log files.

Namespace: Microsoft.VisualBasic.Logging
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public LogFileLocation Location { get; set; }
/** @property */
public LogFileLocation get_Location ()

/** @property */
public void set_Location (LogFileLocation value)

public function get Location () : LogFileLocation

public function set Location (value : LogFileLocation)

Property Value

LogFileLocation, which is the location for the log file. The default value is LocalUserApplicationDirectory.

Use the Location property to set the log path to one of the predefined paths, determined by the LogFileLocation enumeration values.

Location value

Path

CommonApplicationDirectory

The path for the application data that is shared among all users, with the format:

BasePath\CompanyName\ProductName\ProductVersion

A typical value for BasePath is:

C:\Documents and Settings\All Users\Application Data

The values of CompanyName, ProductName, and ProductVersion come from the assembly.

ExecutableDirectory

The path for the executable file that started the application.

LocalUserApplicationDirectory

The path for the application data of a user, with the format:

BasePath\CompanyName\ProductName\ProductVersion

A typical value for BasePath is:

C:\Documents and Settings\username\Application Data

The values of CompanyName, ProductName, and ProductVersion come form the assembly.

TempDirectory

The path of the current system's temporary folder.

Custom

If the string specified by CustomLocation is not empty, then use it as the path; otherwise use the path for the application data of a user.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft