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 session.
Unspecified configuration will be provided by configuration specified in the server or the driver's WithNotifications(Severity?, Category[], Classification[]).
If the driver has disabled notifications with WithNotificationsDisabled(), the unspecified values will be provided by the server.
Disabling categories or severities allows the server to skip analysis for those, which can speed up query execution.

public SessionConfigBuilder 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 WithNotifications(Severity?, Category[], Classification[]) or 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 WithNotifications(Severity?, Category[], Classification[]) or 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

SessionConfigBuilder

A SessionConfigBuilder instance for further configuration options.

Remarks

Cannot be used with: WithNotificationsDisabled().

Exceptions

ArgumentException

Thrown when all parameters are null.

See Also