SPUtility.LogCustomRemoteAppError method
Logs the specified custom error for the app instance.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function LogCustomRemoteAppError ( _
productId As Guid, _
error As String _
) As LogAppErrorResult
'Usage
Dim productId As Guid
Dim error As String
Dim returnValue As LogAppErrorResult
returnValue = SPUtility.LogCustomRemoteAppError(productId, _
error)
public static LogAppErrorResult LogCustomRemoteAppError(
Guid productId,
string error
)
Parameters
productId
Type: System.GuidProductId of the app
error
Type: System.StringError string to log. This cannot exceed 1024 characters.
Return value
Type: Microsoft.SharePoint.Utilities.LogAppErrorResult
LogAppErrorResult indicating success or failure.
Remarks
The calling code needs to establish client context to the containing web of app