GraphDatabaseDriver Method (Uri, IAuthToken, ActionConfigBuilder) |
Returns a driver for a Neo4j instance with custom configuration.
Namespace:
Neo4j.Driver
Assembly:
Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.2.0
Syntaxpublic static IDriver Driver(
Uri uri,
IAuthToken authToken,
Action<ConfigBuilder> action
)
Public Shared Function Driver (
uri As Uri,
authToken As IAuthToken,
action As Action(Of ConfigBuilder)
) As IDriver
public:
static IDriver^ Driver(
Uri^ uri,
IAuthToken^ authToken,
Action<ConfigBuilder^>^ action
)
static member Driver :
uri : Uri *
authToken : IAuthToken *
action : Action<ConfigBuilder> -> IDriver
Parameters
- uri
- Type: SystemUri
The URI to the Neo4j instance. Should be in the form
neo4j://<server location>:<port>.
If port is not supplied the default of 7687 will be used. - authToken
- Type: Neo4j.DriverIAuthToken
Authentication to use, AuthTokens. - action
- Type: SystemActionConfigBuilder
Defines how to build a driver configuration Config using ConfigBuilder.
If set to null, then no modification will be carried out on the build.
As a result, a default config with default settings will be used Config when creating the new driver.
Return Value
Type:
IDriverA new driver to the database instance specified by the
uri.
See Also