Click or drag to resize

GraphDatabaseDriver Method (String)

Returns a driver for a Neo4j instance with default configuration settings.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
public static IDriver Driver(
	string uri
)

Parameters

uri
Type: SystemString
The URI to the Neo4j instance. Should be in the form protocol://<server location>:<port>. If port is not supplied the default of 7687 will be used. The supported protocols in URI could either be bolt or neo4j. The protocol bolt should be used when creating a driver connecting to the Neo4j instance directly. The protocol neo4j should be used when creating a driver with built-in routing.

Return Value

Type: IDriver
A new IDriver instance specified by the uri.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if uri is null.
Remarks
Ensure you provide the protocol for the uri.
See Also