Skip to content

M_NChronicle_File_Configuration_RetentionPolicyConfiguration_WithRetentionLimit

Andrew James edited this page Aug 3, 2017 · 1 revision

RetentionPolicyConfiguration.WithRetentionLimit Method

Set a retention limit, defining how many of the newest archived logs are kept, the elder archived logs are deleted. the default retention limit is 20.

Namespace: NChronicle.File.Configuration
Assembly: NChronicle.File (in NChronicle.File.dll) Version: 1.0.1.0 (1.0.1.0)

Syntax

C#

public void WithRetentionLimit(
	long limit
)

VB

Public Sub WithRetentionLimit ( 
	limit As Long
)

F#

member WithRetentionLimit : 
        limit : int64 -> unit 

Parameters

 

limit
Type: System.Int64
The maximum number of archived log files to keep.

See Also

Reference

RetentionPolicyConfiguration Class
NChronicle.File.Configuration Namespace

Clone this wiki locally