Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ValidateFormDigest method
Collapse the table of content
Expand the table of content

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)

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.

© 2015 Microsoft