Class UnitMetadataRegistry
Inheritance
UnitMetadataRegistry
Assembly: Sdl.Core.Globalization.Async.dll
public class UnitMetadataRegistry
Constructors
Declaration
public UnitMetadataRegistry(ICultureMetadataManager cultureMetadataManager)
Parameters
Methods
Declaration
public Task<List<UnitMetadata>> AllUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns
Declaration
public Task<List<UnitMetadata>> GetAllMetadataAsync(string languageCode)
Parameters
Type |
Name |
Description |
string |
languageCode |
|
Returns
Declaration
public Task<LabelValueSet> GetPreferredLabelValueSetAsync(string unitKey, string languageCode)
Parameters
Returns
Declaration
public Task<UnitDefinitionSet> GetUnitDefinitionSetAsync()
Returns
Declaration
public Task<(UnitMetadata unitMetadata, string languageCodeFound)> GetUnitMetadataFromKeyAsync(string unitKey, string languageCode)
Parameters
Returns
Type |
Description |
TaskUnitMetadataSystem.ValueTuple{Sdl.Core.Globalization.UnitMetadata.UnitMetadata,System.String}.unitMetadatastringSystem.ValueTuple{Sdl.Core.Globalization.UnitMetadata.UnitMetadata,System.String}.languageCodeFound |
|
Declaration
public Task<UnitMetadata> GetUnitMetadataFromLabelAsync(string label, string languageCode)
Parameters
Returns
Declaration
public Task<UnitMetadataSet> GetUnitMetadataSetAsync(string langCode)
Parameters
Type |
Name |
Description |
string |
langCode |
|
Returns