Skip to main content

Getting a node by node Id

Log in to add to favourites

Get by Guid id

C#
1
2
3
public Node Get(Guid id) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Mimic a guid id value var nodeGuid = Guid.Parse("2c95e478-289d-4d28-8159-02a3f8de5fb4"); // Get a specific node with matching id Node moviesNode = movieDbProject.Nodes.Get(nodeGuid);

Get by string id

C#
1
2
3
public Node Get(string id) { }
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get a specific node with matching id Node moviesNode = movieDbProject.Nodes.Get("2c95e478-289d-4d28-8159-02a3f8de5fb4");

Get by Guid id async

C#
1
2
3
public async Task<Node> GetAsync(Guid id) { }
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Mimic a guid id value var nodeGuid = Guid.Parse("2c95e478-289d-4d28-8159-02a3f8de5fb4"); // Get a specific node with matching id Node moviesNode = await movieDbProject.Nodes.GetAsync(nodeGuid);

Get by string id async

C#
1
2
3
public async Task<Node> GetAsync(string id) { }
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get a specific node with matching id Node moviesNode = await movieDbProject.Nodes.GetAsync("2c95e478-289d-4d28-8159-02a3f8de5fb4");

Get root

C#
1
2
3
public Node GetRoot() { }
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get the root node for the prohect Node rootNode = movieDbProject.Nodes.GetRoot();

Get root async

C#
1
2
3
public async Task<Node> GetRoot() { }
C#
1
2
3
4
5
6
7
8
9
10
using Zengenti.Contensis.Management; // Create a client var client = ManagementClient.Create(); // Retrieve the relevant project var movieDbProject = client.Projects.Get("moviedb"); // Get the root node for the project Node rootNode = await movieDbProject.Nodes.GetRootAsync();

Still need help?

New support request