SPUtility.LogCustomRemoteAppError method
SharePoint 2013
Logs the specified custom error for the app instance.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)] [ClientCallableAttribute] [ClientCallableExceptionConstraintAttribute(FixedId = "unauthorizedAccess", ErrorType = typeof(UnauthorizedAccessException), Condition = "Thrown if app context is not found.")] [ClientCallableExceptionConstraintAttribute(FixedId = "argumentException", ErrorType = typeof(ArgumentException), Condition = "Thrown when the 'error' parameter is null or empty or productId parameter is empty.")] public static LogAppErrorResult LogCustomRemoteAppError( Guid productId, string error )
Parameters
- productId
- Type: System.Guid
ProductId of the app
- error
- Type: System.String
Error string to log. This cannot exceed 1024 characters.
Return value
Type: Microsoft.SharePoint.Utilities.LogAppErrorResultLogAppErrorResult indicating success or failure.