Click or drag to resize
CanvasSvgDocumentSaveAsync Method
[Win10_15063] Saves a string containing the SVG for this document.

Namespace:  Microsoft.Graphics.Canvas.Svg
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public IAsyncAction SaveAsync(
	IRandomAccessStream stream
)

Parameters

stream
Type: Windows.Storage.StreamsIRandomAccessStream

Return Value

Type: IAsyncAction
Remarks

This API is only available when running on Windows 10 build 15063 (Creators Update) or greater.

The saved string is encoded in UTF-8, and is not terminated with a null character.

The saved XML may be different from what was originally used in constructing this document. For example it may contain differently-formatted attributes, differently-ordered attributes, or some elements dropped if they are not supported by Direct2D.

See Also