Click or drag to resize
TranslationProviderManagerCreateTranslationProvider Method
Creates a new translation provider for a given URI by selecting the appropriate factory (ITranslationProviderFactory).

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

Parameters

translationProviderUri
Type: SystemUri
A translation provider URI (see Uri).
translationProviderState
Type: SystemString
Serialized state information to be loaded into the translation provider after instantiation (see LoadState(String) and SerializeState).
credentialStore
Type: Sdl.LanguagePlatform.TranslationMemoryApiITranslationProviderCredentialStore
A credential store object, which provides the relevant translation provider factory with the required credentials need to instantiate the translation provider.

Return Value

Type: ITranslationProvider

[Missing <returns> documentation for "M:Sdl.LanguagePlatform.TranslationMemoryApi.TranslationProviderManager.CreateTranslationProvider(System.Uri,System.String,Sdl.LanguagePlatform.TranslationMemoryApi.ITranslationProviderCredentialStore)"]

Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if translationProviderUri, translationProviderState or credentialStore i null.
ArgumentExceptionThrown if translationProviderUri is not supported by any of the available factories.
ArgumentExceptionThrown if translationProviderState is invalid.
TranslationProviderAuthenticationExceptionThrown when no credentials are available and no UI can be shown, or if the credentials provided by the user are invalid.
See Also
Community
Edit

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