string_value

Provides direct access to a string value.

This method does not perform any conversion and will throw if the value's data type does not match the type requested.

OpenText recommends using apply_visitor to process all metadata from a document, but this function might be helpful when you want to process a single metadata element and know its data type.

Syntax

std::string string_value() const;