Share via


SPUsageDefinition class

An abstract class that is the common interface for defining a usage type. A corresponding SPUsageEntry class is used for doing the actual usage logging.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPUsageDefinition
        Microsoft.SharePoint.Administration.SPUsageProvider

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

Syntax

'Declaration
<GuidAttribute("D4747E3A-0347-412f-B6D3-28066AF203A9")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPUsageDefinition _
    Inherits SPPersistedObject
'Usage
Dim instance As SPUsageDefinition
[GuidAttribute("D4747E3A-0347-412f-B6D3-28066AF203A9")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPUsageDefinition : SPPersistedObject

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

SPUsageDefinition members

Microsoft.SharePoint.Administration namespace