SPUtility.StopRequestIfClientIsNotValid method

Stops processing the current request if the request is no longer valid.

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

Syntax

'Declaration
Public Shared Sub StopRequestIfClientIsNotValid ( _
    page As Page _
)
'Usage
Dim page As PageSPUtility.StopRequestIfClientIsNotValid(page)
public static void StopRequestIfClientIsNotValid(
    Page page
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Page object is a null reference (Nothing in Visual Basic).

Remarks

The request becomes invalid when the client is no longer connected to the server. This can occur, for example, if the client stopped running the Web page or browsed to another page.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace