SPSite.UpdateValidationKey Method

Updates the key that is used to generate the form digest validation of the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Sub UpdateValidationKey
'Usage
Dim instance As SPSite

instance.UpdateValidationKey()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public void UpdateValidationKey()

Remarks

Calling the UpdateValidationKey method clears any existing canary validation. Only a server farm administrator can execute this method.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace