Show / Hide Table of Contents

Method WriteToAsync

WriteToAsync(Stream)

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

Declaration
public Task WriteToAsync(Stream writableStream)
Parameters
Type Name Description
Stream writableStream

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

Returns
Type Description
Task

The task object representing the asynchronous write operation.

Exceptions
Type Condition
ArgumentNullException

writableStream is null.

Applies to

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