Associates the specified credentials with the current thread. This method is required for setting the authentication credentials that will be used for all connections in the current thread.

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

ToggleSyntax

Visual Basic (Declaration)
Public Shared Function SetThreadCredentials ( _
	creds As Credentials _
) As Credentials
C#
public static Credentials SetThreadCredentials(
	Credentials creds
)
Visual C++
public:
static Credentials^ SetThreadCredentials(
	Credentials^ creds
)
JavaScript
FileNet.Api.Util.ClientContext.setThreadCredentials = function(creds);

Parameters

creds
Type: FileNet.Api.Authentication..::.Credentials
A Credentials object that represents the user name and password or other credentials to apply for the calling thread.

Return Value

A Credentials object representing the previously applied thread credentials, or null if no previous call to SetThreadCredentials has been made.

ToggleSee Also