Skip to main content
Browse Documentation

Getting a node by entry

Created by Scott Yearsley, last updated 14 Mar 2019

Requesting nodes that have an attached entry can be achieved by using one of the GetByEntryId method overloads.

Get by entry Guid id

Gets a list of nodes by specifiying an entry Guid identifier.

Syntax

public List<Node> GetByEntryId(Guid entryId)
{
}

Parameters

id

Type: Guid
The entry identifier to match the nodes by.

Example

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 assigned entry id
List<Node> nodesWithEntryAssigned = movieDbProject.Nodes.GetByEntryId(entryGuid);

Get by entry Guid id async

Gets a list of nodes asynchronously by specifiying an entry Guid identifier.

Syntax

public async Task<List<Node>> GetByEntryIdAsync(Guid entryId)
{
}

Parameters

id

Type: Guid
The entry identifier to match the nodes by.

Example

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 assigned entry id
List<Node> nodesWithEntryAssigned = await movieDbProject.Nodes.GetByEntryIdAsync(entryGuid);

Get by entry string id

Gets a list of nodes by specifiying an entry string identifier.

Syntax

public List<Node> GetByEntryId(string entryId)
{
}

Parameters

id

Type: string
The entry identifier to match the nodes by.

Example

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 assigned entry id
List<Node> nodesWithEntryAssigned = movieDbProject.Nodes.GetByEntryId("d2fb1cb7-e0c0-4334-bf86-be0f08163953");

Get by entry string id async

Gets a list of nodes asynchronously by specifiying an entry string identifier.

Syntax

public async Task<List<Node>> GetByEntryIdAsync(string entryId)
{
}

Parameters

id

Type: string
The entry identifier to match the nodes by.

Example

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 assigned entry id
List<Node> nodesWithEntryAssigned = await movieDbProject.Nodes.GetByEntryIdAsync("d2fb1cb7-e0c0-4334-bf86-be0f08163953");