SPUsagePeriodType enumeration
Collapse the table of content
Expand the table of content

SPUsagePeriodType enumeration

Specifies the time interval on which a usage report for a Web site is based.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public enum SPUsagePeriodType

Member nameDescription
dayReturns usage information for each day during the past 31 days starting from the previous day.
lastMonthSummarizes usage information for the last 31 days relative to the previous day.

In usage reports created by using one of the GetUsageData methods of the SPWeb class, the SPUsagePeriodType enumeration is used together with the SPUsageReportType enumeration to define the information that is returned.

© 2015 Microsoft