Share via


SpatialEntity Classe

Définition

Représente un emplacement physique dans l’environnement de l’utilisateur et ses métadonnées, qu’une application a l’intention de partager avec d’autres appareils.

public ref class SpatialEntity sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Perception.Spatial.ISpatialEntityFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialEntity final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Perception.Spatial.ISpatialEntityFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialEntity
function SpatialEntity(spatialAnchor, propertySet)
Public NotInheritable Class SpatialEntity
Héritage
Object Platform::Object IInspectable SpatialEntity
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 Creators Update (introduit dans 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v4.0)

Remarques

Important

L’approche SpatialEntityStore de synchronisation des ancres spatiales entre les appareils n’est actuellement pas prise en charge. Envisagez plutôt d’utiliser Azure Spatial Anchors .

Constructeurs

SpatialEntity(SpatialAnchor)

Crée une entité spatiale pour partager l’ancre spatiale fournie.

SpatialEntity(SpatialAnchor, ValueSet)

Crée une entité spatiale pour partager l’ancre spatiale et les métadonnées fournies.

Propriétés

Anchor

Obtient l’ancre spatiale représentant l’emplacement partagé dans l’environnement de l’utilisateur.

Id

Obtient l’ID global unique pour cette entité spatiale.

Properties

Obtient le magasin clé/valeur des métadonnées pour cette entité spatiale.

S’applique à