| 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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public 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:
BooleanRemarks
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