GetAndSetAsync Method GetAndSetAsync(Int64) Sets the current value, and returns the original value. Declaration Task<long> GetAndSetAsync(long value) Parameters Int64 value The value to set. Returns Task<Int64> The original value.