public static Task SetCaptureModeAsync( ElevationCaptureMode mode )
Public Shared Function SetCaptureModeAsync( _ ByVal mode As ElevationCaptureMode _ ) As Task
Parameters
- mode
public static Task SetCaptureModeAsync( ElevationCaptureMode mode )
Public Shared Function SetCaptureModeAsync( _ ByVal mode As ElevationCaptureMode _ ) As Task
The mode cannot be set to ElevationCaptureMode.Surface if there are currently no usable elevation surface layers. An attempt to do so will be ignored - calling code should check the CaptureMode afterward, to determine if a change was actually made, or check the value of HasSurfaces prior.
An elevation surface layer is considered usable if it is visible and has at least one elevation source layer.
If successful, the new capture mode will be committed to the currently edited map.
Target Platforms: Windows 11, Windows 10