SPSolutionResourceUsageLog.GetSolutionResourceQuota Method
Gets the resource quota information for the specified sandboxed solution within the specified site collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GetSolutionResourceQuota ( _
siteId As Guid, _
solutionId As Guid _
) As SPSiteSolutionResourceUsageQuotaRecord
'Usage
Dim siteId As Guid
Dim solutionId As Guid
Dim returnValue As SPSiteSolutionResourceUsageQuotaRecord
returnValue = SPSolutionResourceUsageLog.GetSolutionResourceQuota(siteId, _
solutionId)
public static SPSiteSolutionResourceUsageQuotaRecord GetSolutionResourceQuota(
Guid siteId,
Guid solutionId
)
Parameters
siteId
Type: System.GuidThe ID of the site collection within which the resource quota information is to be retrieved.
solutionId
Type: System.GuidThe ID of the sandboxed solution for which the resource quota information is to be retrieved.
Return Value
Type: Microsoft.SharePoint.SPSiteSolutionResourceUsageQuotaRecord
The resource quota information for the specified sandboxed solution within the specified site collection.
Remarks
This override calls a stored procedure to execute the request. Your code should be prepared to handle an exception if an error occurs.
See Also
Reference
SPSolutionResourceUsageLog Class