ApiDescriptionGroupCollection Class

Summary

A cached collection of [Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup](Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup.yml).

Syntax

public class ApiDescriptionGroupCollection

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroupCollection

Constructors

ApiDescriptionGroupCollection(System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup>, System.Int32)

Initializes a new instance of the [Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroupCollection](Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroupCollection.yml).

Arguments:
  • items (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup}) – The list of [Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup](Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup.yml).
  • version (System.Int32) – The unique version of discovered groups.
public ApiDescriptionGroupCollection(IReadOnlyList<ApiDescriptionGroup> items, int version)

Properties

Items()

Returns the list of [System.Collections.Generic.IReadOnlyList`1]().

Return type:System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ApiExplorer.ApiDescriptionGroup}
public IReadOnlyList<ApiDescriptionGroup> Items { get; }
Version()

Returns the unique version of the current items.

Return type:System.Int32
public int Version { get; }