${specialfolder} Layout Renderer
System special folder path (includes My Documents, My Music, Program Files, Desktop, and more)
| Assembly | Class | .NET Framework | .NET CF | Mono on Windows | Mono on Unix |
|---|
| 1.0 | 1.1 | 2.0 | 1.0 | 2.0 | 1.0 | 2.0 | 1.0 | 2.0 |
|---|
| NLog.dll | NLog.LayoutRenderers.SpecialFolderLayoutRenderer |  |  |  | | |  |  |  |  |
Parameters:
| Name | Type | Description |
|---|
| dir | string | | The name of the directory to be Path.Combine()'d with the directory name. |
|
| file | string | | The name of the file to be Path.Combine()'d with the directory name. |
|
| folder | SpecialFolder | | System special folder. Full list of options is available at MSDN. The most common ones are: - ApplicationData - roaming application data for current user.
- CommonApplicationData - application data for all users.
- MyDocuments - My Documents
- DesktopDirectory - Desktop directory
- LocalApplicationData - non roaming application data
- Personal - user profile directory
- System - System directory
|
|
| culture | string | | The culture name to be used for rendering. |
|
| cultureInfo | CultureInfo | | The CultureInfo to be used for rendering. |
|
| fixedLength | boolean | | Trim the rendered text to the AbsolutePadding value. Default value is: False. |
|
| lowerCase | boolean | | Render an upper-case string. Default value is: False. |
|
| padCharacter | Char | |
| padding | integer | |
| upperCase | boolean | | Render an upper-case string. Default value is: False. |
|
Back to the layout renderer list.