Share via


SpatialEntity Klasse

Definition

Stellt einen physischen Standort in der Umgebung des Benutzers und dessen Metadaten dar, die eine App für andere Geräte freigeben möchte.

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
Vererbung
Object Platform::Object IInspectable SpatialEntity
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)

Hinweise

Wichtig

Der SpatialEntityStore-Ansatz zum Synchronisieren von Raumankern zwischen Geräten wird derzeit nicht unterstützt. Erwägen Sie stattdessen die Verwendung von Azure Spatial Anchors .

Konstruktoren

SpatialEntity(SpatialAnchor)

Erstellt eine neue räumliche Entität, um den bereitgestellten Raumanker gemeinsam zu nutzen.

SpatialEntity(SpatialAnchor, ValueSet)

Erstellt eine neue räumliche Entität, um den bereitgestellten Raumanker und metadaten gemeinsam zu nutzen.

Eigenschaften

Anchor

Ruft den Raumanker ab, der den freigegebenen Standort in der Umgebung des Benutzers darstellt.

Id

Ruft die global eindeutige ID für diese räumliche Entität ab.

Properties

Ruft den Schlüssel-Wert-Speicher der Metadaten für diese räumliche Entität ab.

Gilt für: