SPUtility.LogCustomAppError 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 LogCustomAppError ( _
error As String _
) As LogAppErrorResult
'Usage
Dim error As String
Dim returnValue As LogAppErrorResult
returnValue = SPUtility.LogCustomAppError(error)
public static LogAppErrorResult LogCustomAppError(
string error
)
Parameters
- error
Type: System.String
Return value
Type: Microsoft.SharePoint.Utilities.LogAppErrorResult
LogAppErrorResult indicating success or failure.
Remarks
The calling code needs to establish valid app web context and app identity.