Returns the SecurityToken object that is currently in effect.

If there is a Token associated with the current thread then this method will return it. If not, then it will return the Token associated with the current process. If there are no associated Tokens, then this method returns Null.

Namespace:  FileNet.Api.Util
Assembly:  FileNet.Api (in FileNet.Api.dll)

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function GetToken As SecurityToken
C#
public static SecurityToken GetToken()
Visual C++
public:
static SecurityToken^ GetToken()
JavaScript
FileNet.Api.Util.UserContext.getToken = function();

Return Value

The security token associated with the current thread, the current process, or Null.

ToggleSee Also