MongoDB\Driver\ReadPreference::serialize

Serialize a ReadPreference

Description

final public string MongoDB\Driver\ReadPreference::serialize()

Parameters

This function has no parameters.

Return Values

Returns the serialized representation of the MongoDB\Driver\ReadPreference.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also