FileLogTraceListener.Location Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets location for the log files.
public:
property Microsoft::VisualBasic::Logging::LogFileLocation Location { Microsoft::VisualBasic::Logging::LogFileLocation get(); void set(Microsoft::VisualBasic::Logging::LogFileLocation value); };
public Microsoft.VisualBasic.Logging.LogFileLocation Location { get; set; }
member this.Location : Microsoft.VisualBasic.Logging.LogFileLocation with get, set
Public Property Location As LogFileLocation
Property Value
LogFileLocation, which is the location for the log file. The default value is LocalUserApplicationDirectory.
Remarks
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 DataThe 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. |
Applies to
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za