public Link(string id, string language = null)
{
}
Examples
C#
1
2
3
4
5
// Get the field value as a Location instance.
Link actor = movieEntry.Get<Link>("leadActor");
// Get the field value as a dynamic (ExpandoObject) instance.
dynamic actor = movieEntry.Get("leadActor");
C#
1
2
3
4
5
// Get the field value as a Link list.
List<Link> actors = movieEntry.Get<List<Link>>("actors");
// Alternatively get the field value as a Link array.
Link[] actors = movieEntry.Get<Link[]>("actors");
C#
1
2
3
4
5
// Create a Link object targeting the default project language.
Link actor = new Link("27293124-999a-4895-afec-f060dca33508");
// Set the link value.
movieEntry.Set("leadActor", actor);