MongoDB\Driver\Monitoring\CommandFailedEvent::getPort

(mongodb >=1.20.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getPortReturns the server port for the command

Descrizione

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

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the port of the server on which the command was executed.

Errori/Eccezioni