Search Results for

    Show / Hide Table of Contents

    Class MultipleStringFieldValue

    Represents a multiple string field value. Values are unique, and comparisons are done case-insensitive.

    Inheritance
    System.Object
    FieldValue
    MultipleStringFieldValue
    Inherited Members
    FieldValue.Name
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class MultipleStringFieldValue : FieldValue

    Constructors

    MultipleStringFieldValue()

    Initializes a new instance with default values.

    Declaration
    public MultipleStringFieldValue()

    MultipleStringFieldValue(MultipleStringFieldValue)

    Initializes a new instance of the MultipleStringFieldValue class from another instance.

    Declaration
    public MultipleStringFieldValue(MultipleStringFieldValue other)
    Parameters
    Type Name Description
    MultipleStringFieldValue other

    The other instance.

    MultipleStringFieldValue(String)

    Initializes a new instance of the MultipleStringFieldValue class with the specified field name.

    Declaration
    public MultipleStringFieldValue(string name)
    Parameters
    Type Name Description
    System.String name

    The field name.

    MultipleStringFieldValue(String, ICollection<String>)

    Initializes a new instance of the MultipleStringFieldValue class with the specified field name and values.

    Declaration
    public MultipleStringFieldValue(string name, ICollection<string> values)
    Parameters
    Type Name Description
    System.String name

    The field name.

    System.Collections.Generic.ICollection<System.String> values

    The values.

    Properties

    Count

    Gets the number of different items in the collection.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Values

    Gets or sets the value list for this instance.

    Declaration
    public IEnumerable<string> Values { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    ValueType

    Gets the field value type. Always returns FieldValueType.MultipleString

    Declaration
    public override FieldValueType ValueType { get; set; }
    Property Value
    Type Description
    FieldValueType
    Overrides
    FieldValue.ValueType

    Methods

    Add(FieldValue)

    See Add(FieldValue)

    Declaration
    public override bool Add(FieldValue rhs)
    Parameters
    Type Name Description
    FieldValue rhs

    The field value to add.

    Returns
    Type Description
    System.Boolean

    true

    Overrides
    FieldValue.Add(FieldValue)

    Add(String)

    See Add(String)

    Declaration
    public sealed override bool Add(string v)
    Parameters
    Type Name Description
    System.String v
    Returns
    Type Description
    System.Boolean

    true if this instance was changed, false otherwise.

    Overrides
    FieldValue.Add(String)

    Clear()

    See Clear()

    Declaration
    public override void Clear()
    Overrides
    FieldValue.Clear()

    Contains(String)

    Synonymous to HasValue(String)

    Declaration
    public bool Contains(string v)
    Parameters
    Type Name Description
    System.String v
    Returns
    Type Description
    System.Boolean

    Duplicate()

    Creates a new instance that is a deep copy of this instance.

    Declaration
    public override FieldValue Duplicate()
    Returns
    Type Description
    FieldValue

    A new instance that is a deep copy of this instance.

    Overrides
    FieldValue.Duplicate()

    Equals(Object)

    System.Object.Equals(object)
    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The object to compare with the current object.

    Returns
    Type Description
    System.Boolean

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

    System.Object.GetHashCode(object)
    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    GetValueString()

    See GetValueString()

    Declaration
    public override string GetValueString()
    Returns
    Type Description
    System.String

    A serialized string representation of the field value, which is suitable for persisting, and can be parsed through Parse(String).

    Overrides
    FieldValue.GetValueString()

    HasValue(String)

    Determines if this instance already contains a specified value.

    The comparison is case insenstive.

    Declaration
    public bool HasValue(string v)
    Parameters
    Type Name Description
    System.String v

    The value.

    Returns
    Type Description
    System.Boolean

    true if this instance contains v, false otherwise.

    HasValues(MultipleStringFieldValue)

    Determines if this instance contains all the values of another instance.

    The comparison is case insensitive.

    Declaration
    public bool HasValues(MultipleStringFieldValue other)
    Parameters
    Type Name Description
    MultipleStringFieldValue other

    The other instance.

    Returns
    Type Description
    System.Boolean

    true if this instance contains all the values of other, false otherwise.

    Merge(FieldValue)

    See Merge(FieldValue)

    Declaration
    public override bool Merge(FieldValue rhs)
    Parameters
    Type Name Description
    FieldValue rhs

    The object to merge with.

    Returns
    Type Description
    System.Boolean

    true if this instance was changed, false otherwise.

    Overrides
    FieldValue.Merge(FieldValue)

    Parse(String)

    See Parse(String)

    Declaration
    public override void Parse(string s)
    Parameters
    Type Name Description
    System.String s

    The string that contains the serialized form.

    Overrides
    FieldValue.Parse(String)

    Remove(String)

    Removes a value from this instance's value list.

    Declaration
    public bool Remove(string v)
    Parameters
    Type Name Description
    System.String v

    The value.

    Returns
    Type Description
    System.Boolean

    Substract(FieldValue)

    See Substract(FieldValue)

    Declaration
    public override bool Substract(FieldValue rhs)
    Parameters
    Type Name Description
    FieldValue rhs

    The field value to substract.

    Returns
    Type Description
    System.Boolean

    true if this instance was changed, false otherwise.

    Overrides
    FieldValue.Substract(FieldValue)

    ToString()

    System.Object.ToString()
    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string representation of the object, for display purposes.

    Overrides
    System.Object.ToString()

    On this page

    • Constructors
      • MultipleStringFieldValue()
      • MultipleStringFieldValue(MultipleStringFieldValue)
      • MultipleStringFieldValue(String)
      • MultipleStringFieldValue(String, ICollection<String>)
    • Properties
      • Count
      • Values
      • ValueType
    • Methods
      • Add(FieldValue)
      • Add(String)
      • Clear()
      • Contains(String)
      • Duplicate()
      • Equals(Object)
      • GetHashCode()
      • GetValueString()
      • HasValue(String)
      • HasValues(MultipleStringFieldValue)
      • Merge(FieldValue)
      • Parse(String)
      • Remove(String)
      • Substract(FieldValue)
      • ToString()
    Back to top Generated by DocFX