Converts the text representation to an enumerated value.
the string.
a AsReferenceKind or as_reference_kind_unknown for unknown