using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Retrieve an entry
var movie = client.Entries.Get("1d1d3724-3f53-4589-8ea3-b16a1f3921f5");
// Check that a metadata item exists and access it
if (movie.Metadata.Keys.Contains("originalId"))
{
var originalId = movie.Metadata.Get("originalId");
// Use the value e.g render or pass into a query/search
}
CSHARP
1
2
3
public T Get<T>(string key)
{
}
CSHARP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using Zengenti.Contensis.Delivery;
// Create a client
var client = ContensisClient.Create();
// Retrieve an entry
var movie = client.Entries.Get("1d1d3724-3f53-4589-8ea3-b16a1f3921f5");
// Check that a metadata item exists and access it
if (movie.Metadata.Keys.Contains("originalId"))
{
var originalId = movie.Metadata.Get<string>("originalId");
// Use the value e.g render or pass into a query/search
}