Click or drag to resize
ITranslationProviderFactoryCreateTranslationProvider Method
Creates an instance of the translation provider defined by the specified URI.

Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntax
ITranslationProvider CreateTranslationProvider(
	Uri translationProviderUri,
	string translationProviderState,
	ITranslationProviderCredentialStore credentialStore
)

Parameters

translationProviderUri
Type: SystemUri
A URI that identifies the translation provider to create.
translationProviderState
Type: SystemString
Serialized state information that should be used for configuring the translation provider. This is typically state information that was previously saved by calling SerializeState.
credentialStore
Type: Sdl.LanguagePlatform.TranslationMemoryApiITranslationProviderCredentialStore
A credential store object that can be used to retrieve credentials required for this translation provider.

Return Value

Type: ITranslationProvider
A new translation provider object, ready to be used.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if translationProviderUri, translationProviderState or credentialStore is null.
ArgumentExceptionThrown if translationProviderUri is not supported by this factory.
ArgumentExceptionThrown if translationProviderState is invalid.
TranslationProviderAuthenticationExceptionThrown when no appropriate credentials are available in the credential store.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments