Share via


SpatialGraphPlacement.TryPersistStaticNodesAsync(String) Method

Definition

Attempts to persist the static nodes referenced by this placement's control points to the platform's SpatialAnchorStore, using unique keys based on the the given name and each static node's id. This ensures that these static nodes will remain valid for future sessions. May return false if the platform's storage is full, or does not support storing static nodes. Note that recreating a placement from control points does not require any steps to load the static nodes from persistence; this happens implicity during TryCreate(SpatialGraphCoordinateSystem, SpatialGraphPlacementControlPoint[]). All previously persisted entries associated with the given name are removed regardless of success or failure.

public System.Threading.Tasks.Task<bool> TryPersistStaticNodesAsync (string name);
member this.TryPersistStaticNodesAsync : string -> System.Threading.Tasks.Task<bool>
Public Function TryPersistStaticNodesAsync (name As String) As Task(Of Boolean)

Parameters

name
String

An application-defined name to disambiguate between different placements which may share the same underlying static nodes.

Returns

Applies to