Search Results for

    Show / Hide Table of Contents

    Class UnitMetadata

    Specifies the labels to use for a given unit in a given langauge

    Inheritance
    System.Object
    UnitMetadata
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.Core.Globalization.UnitMetadata
    Assembly: Sdl.Core.Globalization.dll
    Syntax
    public class UnitMetadata

    Constructors

    UnitMetadata()

    Declaration
    public UnitMetadata()

    Properties

    DoNotInherit

    Set to True if these labels are for a more specific culture such as en-GB where labels specified for a parent culture or language group should not be used.

    Declaration
    public bool DoNotInherit { get; set; }
    Property Value
    Type Description
    System.Boolean

    LabelValueSets

    Specifies labels that can be used for this unit in this culture. Leave null or empty if there is no label that should be recognised for this unit in this culture (and set DoNotInherit to True).

    Declaration
    public List<LabelValueSet> LabelValueSets { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.List<LabelValueSet>

    UnitKey

    The key of the UnitDefinition for which this is providing metadata

    Declaration
    public string UnitKey { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    LabelValueSetFromLabel(String)

    Finds the set of labels that includes this specific label

    Declaration
    public LabelValueSet LabelValueSetFromLabel(string label)
    Parameters
    Type Name Description
    System.String label
    Returns
    Type Description
    LabelValueSet

    On this page

    Back to top Generated by DocFX