Compartilhar via


ISPWindowsTokenCacheServiceContract.IsUserHandleCached Method

Determines whether there is a handle cached for the specified user.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<OperationContractAttribute> _
Function IsUserHandleCached ( _
    username As String _
) As Boolean
'Usage
Dim instance As ISPWindowsTokenCacheServiceContract
Dim username As String
Dim returnValue As Boolean

returnValue = instance.IsUserHandleCached(username)
[OperationContractAttribute]
bool IsUserHandleCached(
    string username
)

Parameters

Return Value

Type: System.Boolean
true if there is a handle cached for the specified user; otherwise, false.

Remarks

Classes that implement this method should return TRUE if a previous call to the CacheHandle(IntPtr, Int32) method was made with a callerPid associated with the username.

See Also

Reference

ISPWindowsTokenCacheServiceContract Interface

ISPWindowsTokenCacheServiceContract Members

Microsoft.SharePoint.Administration.Claims Namespace