GetSizeAsync Method GetSizeAsync() Gets the number of items in the collection. Declaration Task<int> GetSizeAsync() Returns Task<int> The number of items in the collection.