Show / Hide Table of Contents

Method WriteToAsync

WriteToAsync(Stream)

Saves this node and any referenced local files into the given System.IO.Stream as a KMZ archive.

Declaration
public async Task WriteToAsync(Stream writableStream)
Parameters
Type Name Description
System.IO.Stream writableStream

A writable System.IO.Stream to which KMZ binary data will be written.

Returns
Type Description
System.Threading.Tasks.Task

The task object representing the asynchronous write operation.

Exceptions
Type Condition
System.ArgumentNullException

writableStream is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
Relevant samples
Create and save KML file: Construct a KML document and save it as a KMZ file.
In This Article
Back to top Copyright © 2022 Esri.