Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies error message text for the specified HTTP context.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Sub SetErrorMessage ( _
context As HttpContext, _
message As String _
)
'Usage
Dim context As HttpContext
Dim message As StringSPMobileUtility.SetErrorMessage(context, message)
public static void SetErrorMessage(
HttpContext context,
string message
)
Parameters
context
Type: System.Web.HttpContextAn HttpContext object that provides access to HTTP-specific information about an individual HTTP request.
message
Type: System.StringA string that contains the text of the error message.