MongoDB\Driver\Monitoring\ServerChangedEvent::getPort

(mongodb >=1.13.0)

MongoDB\Driver\Monitoring\ServerChangedEvent::getPortReturns the port on which this server is listening

說明

final public MongoDB\Driver\Monitoring\ServerChangedEvent::getPort(): int

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

Returns the port on which this server is listening.

錯(cuò)誤/異常