MongoDB\Driver\Monitoring\ServerChangedEvent::getHost

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\ServerChangedEvent::getHostReturns the hostname of the server

說明

final public MongoDB\Driver\Monitoring\ServerChangedEvent::getHost(): string

參數

此函數沒有參數。

返回值

Returns the hostname of the server.

錯誤/異常