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

  • error
    Type: System.String

    Error 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

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace