记录应用程序实例指定的自定义错误。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function LogCustomRemoteAppError ( _
productId As Guid, _
error As String _
) As LogAppErrorResult
用法
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
)
参数
productId
类型:System.Guid应用程序的产品 Id
error
类型:System.String要记录的错误字符串。这不能超过 1024年个字符。
返回值
类型:Microsoft.SharePoint.Utilities.LogAppErrorResult
LogAppErrorResult 指示成功或失败。
备注
调用的代码需要建立到包含 web 应用程序的客户端上下文