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.
Inheritance
Inherited Members
Namespace: Sdl.ProjectAutomation.Core
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 |
---|---|---|
System.String | fileBasedTranslationMemoryFilePath | The absolute path to a file-based translation memory (*.sdltm). |
TranslationProviderReference(String, Boolean)
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 |
---|---|---|
System.String | fileBasedTranslationMemoryFilePath | The absolute path to a file-based translation memory (*.sdltm). |
System.Boolean | 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 |
---|---|---|
System.Uri | uri | The URI that identifies the translation provider. |
TranslationProviderReference(Uri, String, Boolean)
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 |
---|---|---|
System.Uri | uri | The URI that identifies the translation provider. |
System.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 |
System.Boolean | 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 |
---|---|
System.Boolean |
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 |
---|---|
System.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 |
---|---|
System.Uri |