| FieldValuesLookup Method (String, FieldValueType) |
Returns a field value with the specified name and performs a type check on the result.
Throws an error if the types do not match.
Namespace: Sdl.LanguagePlatform.TranslationMemoryAssembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntaxpublic FieldValue Lookup(
string name,
FieldValueType expectedValueType
)
Public Function Lookup (
name As String,
expectedValueType As FieldValueType
) As FieldValue
public:
FieldValue^ Lookup(
String^ name,
FieldValueType expectedValueType
)
member Lookup :
name : string *
expectedValueType : FieldValueType -> FieldValue
Parameters
- name
- Type: SystemString
The field name. - expectedValueType
- Type: Sdl.LanguagePlatform.TranslationMemoryFieldValueType
The expected field type.
Return Value
Type:
FieldValueThe FieldValue object if exists, otherwise null.
See Also
Comments