Retrieving content types
Getting a single content type container
// Declare the GUID ID
Guid guid = new Guid("d3b9cc9a-d471-4465-a89a-112c6bc1e5b4");
// Get a container by its GUID ID
EntityContainer container = _contentTypeService.GetContainer(guid);// Get a container by its numeric ID
EntityContainer container = _contentTypeService.GetContainer(1090);Getting a list of content type containers
// Declare the array of IDs to lookup
int[] ids = new[] {1090};
// Get the child containers via the content type service
IEnumerable<EntityContainer> containers = _contentTypeService.GetContainers(ids);Last updated
Was this helpful?