次の方法で共有


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

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.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace