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