The Telerik Platform product is retired.Learn more

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

Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.