Php/docs/function.mongodb.driver.monitoring.removesubscriber

来自菜鸟教程
跳转至:导航、​搜索

MongoDB\Driver\Monitoring\removeSubscriber

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\removeSubscriberUnregisters an existing monitoring event subscriber


说明

MongoDB\Driver\Monitoring\removeSubscriber ( MongoDB\Driver\Monitoring\Subscriber $subscriber ) : void

Unregisters an existing monitoring event subscriber from the driver. Unregistered subscribers will no longer be notified of monitoring events.

Note:

If the object is not registered, this function is a no-op.

参数

subscriber (MongoDB\Driver\Monitoring\Subscriber)
A monitoring event subscriber object to unregister.


返回值

没有返回值。


错误/异常