Search Results for

    Show / Hide Table of Contents

    Class SearchResultFieldValueAccessor

    A class which allows to use a search result as a ITypedKeyValueContainer.

    Inheritance
    System.Object
    SearchResultFieldValueAccessor
    Implements
    ITypedKeyValueContainer
    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.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    public class SearchResultFieldValueAccessor : ITypedKeyValueContainer

    Constructors

    SearchResultFieldValueAccessor(SearchResult)

    Initializes a new instance wiht the specified values.

    Declaration
    public SearchResultFieldValueAccessor(SearchResult r)
    Parameters
    Type Name Description
    SearchResult r

    The search result.

    Methods

    GetType(String)

    See GetType(String)

    Declaration
    public FieldValueType GetType(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName

    The field name.

    Returns
    Type Description
    FieldValueType

    The type of that field, or FieldValueType.Unknown if it doesn't exist.

    GetValue(String)

    See GetValue(String)

    Declaration
    public FieldValue GetValue(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName

    The field name.

    Returns
    Type Description
    FieldValue

    The value of the field, or null if not defined.

    GetValue(String, FieldValueType)

    See GetValue(String, FieldValueType)

    Declaration
    public FieldValue GetValue(string fieldName, FieldValueType t)
    Parameters
    Type Name Description
    System.String fieldName

    The field name

    FieldValueType t

    The field type to return the value for.

    Returns
    Type Description
    FieldValue

    null if no value is defined. Throws exception if value is of a different type.

    Implements

    ITypedKeyValueContainer

    On this page

    • Constructors
      • SearchResultFieldValueAccessor(SearchResult)
    • Methods
      • GetType(String)
      • GetValue(String)
      • GetValue(String, FieldValueType)
    • Implements
    Back to top Generated by DocFX