SPAnalyticsUsageEntry.LogAnalyticsEvent method (Int32, String, Guid, SPSite)

Creates and logs an analytics event into the analytics pipeline.

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

Syntax

'Declaration
Public Shared Sub LogAnalyticsEvent ( _
    eventTypeId As Integer, _
    itemId As String, _
    rollupScopeId As Guid, _
    site As SPSite _
)
'Usage
Dim eventTypeId As Integer
Dim itemId As String
Dim rollupScopeId As Guid
Dim site As SPSiteSPAnalyticsUsageEntry.LogAnalyticsEvent(eventTypeId, _
    itemId, rollupScopeId, site)
public static void LogAnalyticsEvent(
    int eventTypeId,
    string itemId,
    Guid rollupScopeId,
    SPSite site
)

Parameters

  • eventTypeId
    Type: System.Int32

    The ID of the type of analytics event to create.

  • rollupScopeId
    Type: System.Guid

    The ID of a hierarchical roll-up scope of the item.

See also

Reference

SPAnalyticsUsageEntry class

SPAnalyticsUsageEntry members

LogAnalyticsEvent overload

Microsoft.SharePoint.Administration namespace