 | FileTargetCreateDirs Property |
Gets or sets a value indicating whether to create directories if they do not exist.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic bool CreateDirs { get; set; }
Public Property CreateDirs As Boolean
Get
Set
Dim instance As FileTarget
Dim value As Boolean
value = instance.CreateDirs
instance.CreateDirs = value
abstract CreateDirs : bool with get, set
override CreateDirs : bool with get, set
Property Value
Type:
Boolean
Remarks
Setting this to false may improve performance a bit, but you'll receive an error
when attempting to write to a directory that's not present.
See Also