SPSolutionResourceUsageLog.GetSolutionResourceUsage Method

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

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

Parameters

  • siteId
    Type: System.Guid

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

  • solutionId
    Type: System.Guid

    The ID of the sandboxed solution 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 resource usage data is to be retrieved.

Return Value

Type: System.Collections.Generic.ICollection<SPSiteSolutionDailyResourceUsageRecord>
The collection of daily solution resource usage data for the specified sandboxed solution 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