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
username
Type: System.StringThe name of the user.
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