TrySetCountAsync Method TrySetCountAsync(int) Sets the count to the specified value if it is zero. Declaration Task<bool> TrySetCountAsync(int count) Parameters int count The new count. Returns Task<bool> Whether the count was set.