Sets a custom token and locale provider for the process.
Namespace:
FileNet.Api.Util
Assembly:
FileNet.Api (in FileNet.Api.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Sub SetClientContextProvider ( _ newProv As IClientContextProvider _ ) |
| C# |
|---|
public static void SetClientContextProvider( IClientContextProvider newProv ) |
| Visual C++ |
|---|
public: static void SetClientContextProvider( IClientContextProvider^ newProv ) |
| JavaScript |
|---|
FileNet.Api.Util.ClientContext.setClientContextProvider = function(newProv); |
Parameters
- newProv
- Type: FileNet.Api.Util..::.IClientContextProvider
A ClientContextProvider object that represents the locale provider.Mixing calls to the three methods of the ClientContext class in a single application is not permitted. An application must make either a single call to SetProcessCredentials or SetClientContextProvider or make calls to SetThreadCredentials. Attempting to call, for example, SetClientContextProvider having previously called SetProcessCredentials or SetThreadCredentials will result in an exception.