Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
LogCustomRemoteAppError method
Collapse the table of content
Expand the table of content

SPUtility.LogCustomRemoteAppError method

SharePoint 2013

Logs the specified custom error for the app instance.

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

public static LogAppErrorResult LogCustomRemoteAppError(
	Guid productId,
	string error


Type: System.Guid

ProductId of the app

Type: System.String

Error string to log. This cannot exceed 1024 characters.

Return value

Type: Microsoft.SharePoint.Utilities.LogAppErrorResult
LogAppErrorResult indicating success or failure.

The calling code needs to establish client context to the containing web of app

© 2015 Microsoft