array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getserverconnectionid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getServerConnectionId', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-commandfailedevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent', ), 'prev' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getserver.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getServer', ), 'next' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getserviceid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getServiceId', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/commandfailedevent/getserverconnectionid.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.14.0)
MongoDB\Driver\Monitoring\CommandFailedEvent::getServerConnectionId — Returns the server connection ID for the command
Returns the server connection ID for the command. The server connection ID is
distinct from server (i.e.
MongoDB\Driver\Monitoring\CommandFailedEvent::getServer())
and is returned in the "connectionId" field of a hello
command response MongoDB 4.2+.
此函数没有参数。
Returns the server connection ID, or null
if it is not available.