Table of Contents

Method TryGet

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

TryGet<T>(string, out T)

Tries to get the value that has the specified key in Properties and casts it to the specified type.

bool TryGet<T>(string key, out T value)

Parameters

key string

The key.

value T

The value if it exists.

Returns

bool

true if the value exists, false otherwise.

Type Parameters

T

The type to cast the value to.