Partilhar via


SPUtility.FlushIISToken Method

Invalidates the user token for all application pool accounts.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Shared Function FlushIISToken As Boolean
'Usage
Dim returnValue As Boolean

returnValue = SPUtility.FlushIISToken()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public static bool FlushIISToken()

Return Value

Type: System.Boolean
true if successful; otherwise, false.

Remarks

This method returns false is the version number of Internet Information Services is less than 7.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace