共用方式為


SpatialAnchorTransferManager.RequestAccessAsync 方法

定義

要求應用程式存取權以匯出或匯入空間錨點。 這需要 spatialPerception 功能。

public:
 static IAsyncOperation<SpatialPerceptionAccessStatus> ^ RequestAccessAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SpatialPerceptionAccessStatus> RequestAccessAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("Use SpatialEntityStore instead of SpatialAnchorTransferManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static IAsyncOperation<SpatialPerceptionAccessStatus> RequestAccessAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SpatialPerceptionAccessStatus> RequestAccessAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use SpatialEntityStore instead of SpatialAnchorTransferManager. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static IAsyncOperation<SpatialPerceptionAccessStatus> RequestAccessAsync();
function requestAccessAsync()
Public Shared Function RequestAccessAsync () As IAsyncOperation(Of SpatialPerceptionAccessStatus)

傳回

一旦使用者完成任何同意對話方塊,就會觸發的作業,並提供存取狀態。

屬性

Windows 需求

應用程式功能
spatialPerception

適用於