Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

SPUtility.ValidateFormDigest method

Validates the form digest control that is used in the current request.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static bool ValidateFormDigest()

Return value

Type: System.Boolean
true if the form digest control is valid; otherwise, false.

If the method that is passed to the RunWithElevatedPrivileges method includes a write operation, either of the SPUtility.ValidateFormDigest() or SPWeb.ValidateFormDigest() methods should be called before a call is made to RunWithElevatedPrivileges.

For information about the control that is used for security validation, see Microsoft.SharePoint.WebControls.FormDigest.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.