ReportNames Property

The ReportNames property of the SPUsage class gets the localized names of the report types that are used in usage reports.

Property Value

A string array that contains localized names corresponding to values of the SPUsageReportType enumeration.


The SPUsage class cannot be instantiated and the ReportNames property is called directly on the class. Use SPUsage.ReportNames to return a string array containing the report names.


The following code example uses an indexer on the property to display a list of the report names used in the current version of Microsoft Windows SharePoint Services.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security