Share via


SPSolutionResourceUsageLog.GetSiteSolutionResourceUsage method

Gets the collection of daily solution resource usage data within the specified site collection during the specified time interval.

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

Syntax

'Declaration
Public Shared Function GetSiteSolutionResourceUsage ( _
    siteId As Guid, _
    daysAgo As Nullable(Of Integer) _
) As ICollection(Of SPSiteSolutionDailyResourceUsageRecord)
'Usage
Dim siteId As Guid
Dim daysAgo As Nullable(Of Integer)
Dim returnValue As ICollection(Of SPSiteSolutionDailyResourceUsageRecord)

returnValue = SPSolutionResourceUsageLog.GetSiteSolutionResourceUsage(siteId, _
    daysAgo)
public static ICollection<SPSiteSolutionDailyResourceUsageRecord> GetSiteSolutionResourceUsage(
    Guid siteId,
    Nullable<int> daysAgo
)

Parameters

  • siteId
    Type: System.Guid

    The ID of the site collection for which the daily solution resource usage data is to be retrieved.

  • daysAgo
    Type: System.Nullable<Int32>

    The number of days in the past for which the resource usage data is to be retrieved.

Return value

Type: System.Collections.Generic.ICollection<SPSiteSolutionDailyResourceUsageRecord>
The daily solution resource usage data within the specified site collection during the specified time interval.

Remarks

Set the daysAgo parameter to null to get all of the available data.

See also

Reference

SPSolutionResourceUsageLog class

SPSolutionResourceUsageLog members

Microsoft.SharePoint namespace