NumberLogFiles Property

The NumberLogFiles property of the SPUsageSettings class gets or sets the number of log files to use in usage analysis per virtual server.

Property Value

A 32-bit unsigned integer that specifies the number of log files to use.

Remarks

Setting the NumberLogFiles property requires that the Update method be called for changes to take effect in the database.

This property returns an ArgumentException exception if the number of log files is less than 1 or greater than the value specified by the MaxNumberLogFiles field.

Example

The following code example uses the NumberLogFiles property to set the number of log files that are created.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security