Share via


SpatialAnchorExporter.TryExportAnchorAsync Méthode

Définition

Exporte une ancre spatiale vers un flux à des fins de partage ou de relocalisation. Cela permet à plusieurs appareils de raisonner sur les mêmes emplacements dans l’environnement de leurs utilisateurs.

public:
 virtual IAsyncOperation<bool> ^ TryExportAnchorAsync(SpatialAnchor ^ anchor, SpatialAnchorExportPurpose purpose, IOutputStream ^ stream) = TryExportAnchorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryExportAnchorAsync(SpatialAnchor const& anchor, SpatialAnchorExportPurpose const& purpose, IOutputStream const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryExportAnchorAsync(SpatialAnchor anchor, SpatialAnchorExportPurpose purpose, IOutputStream stream);
function tryExportAnchorAsync(anchor, purpose, stream)
Public Function TryExportAnchorAsync (anchor As SpatialAnchor, purpose As SpatialAnchorExportPurpose, stream As IOutputStream) As IAsyncOperation(Of Boolean)

Paramètres

anchor
SpatialAnchor

Ancre spatiale à exporter.

purpose
SpatialAnchorExportPurpose

Objectif de l’exportation, du partage ou de la relocalisation.

stream
IOutputStream

Flux vers lequel exporter l’ancre.

Retours

Opération qui se déclenche une fois que l’exportation a été tentée, en fournissant true si l’exportation a réussi ; sinon, false.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
spatialPerception

S’applique à