Getting the Content Type Count

Getting the Content Type Count

Using the Administration API in combination with master key authentication you can request the total count of content types objects from your code.

To get the count of all content types in an application use the following code:

public async Task<int> GetContentTypeCount(Guid applicationId, string masterKey)
{
    var metadata = new EverliveAccount(new EverliveAccountSettings(AuthorizationStrategy.MasterKey, masterKey));
    return await metadata.WorkWith().Application(applicationId).Types().GetCount().ExecuteAsync();
}

See Also


Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.