Share via


SPUsage class

Provides a property to return the localized names of the report types that are used in usage reports.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPUsage

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPUsage
'Usage
Dim instance As SPUsage
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPUsage

Remarks

SPUsage cannot be instantiated and the read-only static ReportNames property is called directly on the class. Use the ReportNames property to return a string array that contains the report names.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPUsage members

Microsoft.SharePoint.Administration namespace