Share via


GetUsageBlob Method

Returns information about the usage of a Web site.

Syntax

<Method ID="Text">
  <SetVar Name="Cmd">GetUsageBlob</SetVar>
  <SetVar Name="BlobType">[Current|Old]</SetVar>
</Method>

Parameters

Name = "Cmd"

Name = "BlobType"

Remarks

The GetUsageBlob method returns all usage data for a site, while the GetUsageData method of the Microsoft.SharePoint.SPWeb class returns only 2000 records. GetUsageBlob works for both GET and POST operations, but the returned data cannot be displayed in the browser.

For more information about the GetUsageBlob method and a tool that implements this method to return usage event data, download the Usage Blob Parser. For general information about usage event logging, see Usage Event Logging in Windows SharePoint Services.

Decoded

<Method ID="0,GetUsageBlob">
  <SetVar Name="Cmd">GetUsageBlob</SetVar>
  <SetVar Name="BlobType">Current</SetVar>
</Method>

Return Value

Success

Returns usage data in binary format as an octet stream.

Error

Returns an XML-encoded Unicode (UTF-8) text string. For more information, see Error Message Format for Windows SharePoint Services for more information.