共用方式為


SPMobileUtility.SetErrorMessage method

指定為指定的 HTTP 內容的錯誤訊息文字。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Sub SetErrorMessage ( _
    context As HttpContext, _
    message As String _
)
'用途
Dim context As HttpContext
Dim message As StringSPMobileUtility.SetErrorMessage(context, message)
public static void SetErrorMessage(
    HttpContext context,
    string message
)

參數

  • message
    Type: System.String

    字串,包含錯誤訊息的文字。

請參閱

參照

SPMobileUtility class

SPMobileUtility members

Microsoft.SharePoint.Utilities namespace