Class TranslationProviderReference
This class represents a reference to a translation provider, represented by a
Uri
and optional provider-specific state information. There is also also an Enabled
property which determines whether this translation provider will be used during translation provider
operations in project.
Inherited Members
Namespace: SdlSdl.ProjectAutomationCore
Assembly: Sdl.ProjectAutomation.Core.dll
Syntax
public class TranslationProviderReference
Constructors
TranslationProviderReference(string)
Constructor that takes an absolute path to a file-based translation memory (*.sdltm) and enabled by default.
Declaration
public TranslationProviderReference(string fileBasedTranslationMemoryFilePath)
Parameters
Type | Name | Description |
---|---|---|
string | fileBasedTranslationMemoryFilePath | The absolute path to a file-based translation memory (*.sdltm). |
TranslationProviderReference(string, bool)
Constructor that takes an absolute path to a file-based translation memory (*.sdltm) and enabled setting.
Declaration
public TranslationProviderReference(string fileBasedTranslationMemoryFilePath, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
string | fileBasedTranslationMemoryFilePath | The absolute path to a file-based translation memory (*.sdltm). |
bool | enabled | Whether this translation provider will be used during translation provider operations in project. |
TranslationProviderReference(Uri)
Constructor that takes the given URI, with no state and enabled by default.
Declaration
public TranslationProviderReference(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI that identifies the translation provider. |
TranslationProviderReference(Uri, string, bool)
Constructor that takes the given URI, provider-specific state information and enabled setting.
Declaration
public TranslationProviderReference(Uri uri, string state, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | The URI that identifies the translation provider. |
string | state | Translation-provider specific state information that should be stored in the project and passed on
to the translation provider when it is instantiated. Can be |
bool | enabled | Whether this translation provider will be used during translation provider operations in project. |
Properties
Enabled
Gets or sets whether this translation provider will be used during translation provider operations in project.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
State
Gets or sets translation-provider specific state information that should be stored in the project and passed on
to the translation provider when it is instantiated. Can be null
.
Declaration
public string State { get; set; }
Property Value
Type | Description |
---|---|
string |
Uri
Gets or sets the URI that identifies the translation provider. Cannot be null
.
Declaration
public Uri Uri { get; set; }
Property Value
Type | Description |
---|---|
Uri |