Interface IStudioTermbase
Namespace: Sdl.Terminology.TerminologyProvider.Core.Termbase
Assembly: Sdl.Terminology.TerminologyProvider.Core.dll
Syntax
public interface IStudioTermbase
Methods
AddEntry(Entry)
Adds an entry to the terminology provider and returns the new entry ID.
Declaration
int AddEntry(Entry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| Entry | entry | The entry to add, without an ID. |
Returns
| Type | Description |
|---|---|
| int |
GetEntries(int, int)
Retrieves a list of entries from the terminology provider, starting after the specified last seen entry ID and limited to the specified page size.
Declaration
List<Entry> GetEntries(int lastSeenId = 0, int pageSize = 200)
Parameters
| Type | Name | Description |
|---|---|---|
| int | lastSeenId | The ID of the last seen entry. Only entries with IDs greater than this value will be returned. |
| int | pageSize | The maximum number of entries to return. |
Returns
| Type | Description |
|---|---|
| List<Entry> |
GetEntriesIDs()
Returns a list of entry IDs available in this terminology provider
Declaration
List<int> GetEntriesIDs()
Returns
| Type | Description |
|---|---|
| List<int> |
UpdateEntry(Entry)
Updates an existing entry in the terminology provider.
Declaration
void UpdateEntry(Entry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| Entry | entry | The entry to update, including its ID. |