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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Sub StopRequestIfClientIsNotValid ( _
page As Page _
)
'Usage
Dim page As PageSPUtility.StopRequestIfClientIsNotValid(page)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static void StopRequestIfClientIsNotValid(
Page page
)
Parameters
page
Type: System.Web.UI.PageA Page object that specifies the Web page.
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.