# MongoDB\Driver\ServerApi::bsonSerialize

(mongodb >=1.10.0)

MongoDB\Driver\ServerApi::bsonSerialize — Returns an object for BSON serialization

### 说明

final public MongoDB\Driver\ServerApi::bsonSerialize(): stdClass

### 参数

此函数没有参数。

### 返回值

Returns an object for serializing the ServerApi as BSON.

### 错误／异常

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

### 参见

- MongoDB\BSON\Serializable::bsonSerialize() - Provides an array or document to serialize as BSON

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open