Table of Contents

Method WithNotifications

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

WithNotifications(Severity?, Category[], Classification[])

Override configuration for which INotifications should be emitted for the lifetime of the driver.
Unspecified configuration will be provided by configuration in the server.
Disabling categories or severities allows the server to skip analysis for those, which can speed up query execution.

public ConfigBuilder WithNotifications(Severity? minimumSeverity, Category[] disabledCategories = null, Classification[] disabledClassifications = null)

Parameters

minimumSeverity Severity?

Optional parameter to override the minimum severity of notifications emitted.
By leaving null, the value will inherit configuration from the server.

disabledCategories Category[]

Optional parameter to override the category of notifications emitted.
By passing an empty collection, all categories are enabled.
By leaving null, the value will inherit configuration from the server.

disabledClassifications Classification[]

Optional parameter to override the classification of notifications emitted.
By passing an empty collection, all classifications are enabled.
By leaving null, the value will inherit configuration from the server.

Returns

ConfigBuilder

A ConfigBuilder instance for further configuration options.

Remarks

Cannot be used with: WithNotificationsDisabled().

Exceptions

ArgumentException

Thrown when all parameters are null.

See Also