public : IAsyncAction SetRegionsAsync(IIterable<RegionOfInterest> regions)public IAsyncAction SetRegionsAsync(IEnumerable<RegionOfInterest> regions)Public Function SetRegionsAsync(regions As IEnumerable<RegionOfInterest>) As IAsyncAction// You can use this method in JavaScript.

Asynchronously sets the regions of interest and specifies if the values should be locked.

public : IAsyncAction SetRegionsAsync(IIterable<RegionOfInterest> regions, bool lockValues)public IAsyncAction SetRegionsAsync(IEnumerable<RegionOfInterest> regions, Boolean lockValues)Public Function SetRegionsAsync(regions As IEnumerable<RegionOfInterest>, lockValues As Boolean) As IAsyncAction// You can use this method in JavaScript.