다음을 통해 공유


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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPUsage
'Usage
Dim instance As SPUsage
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, 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