 | 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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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
member CreateDirs : bool with get, set
Property Value
Type:
Boolean
Remarks
Default: .
Setting this to may improve performance a bit, but will always fail
when attempt writing to a non-existing directory.
See Also