PerceptionFrameProviderManagerService.UpdateAvailabilityForProvider 方法

定义

设置 IPerceptionFrameProvider 是否可用。

public:
 static void UpdateAvailabilityForProvider(IPerceptionFrameProvider ^ provider, bool available);
 static void UpdateAvailabilityForProvider(IPerceptionFrameProvider const& provider, bool const& available);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionFrameProviderManagerService may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static void UpdateAvailabilityForProvider(IPerceptionFrameProvider const& provider, bool const& available);
public static void UpdateAvailabilityForProvider(IPerceptionFrameProvider provider, bool available);
[Windows.Foundation.Metadata.Deprecated("PerceptionFrameProviderManagerService may be unavailable after Windows Creator Update. Please refer to AVStream on MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static void UpdateAvailabilityForProvider(IPerceptionFrameProvider provider, bool available);
function updateAvailabilityForProvider(provider, available)
Public Shared Sub UpdateAvailabilityForProvider (provider As IPerceptionFrameProvider, available As Boolean)

参数

provider
IPerceptionFrameProvider

要为其设置可用性的提供程序。

available
Boolean

bool

提供程序是否可用。

属性

注解

可用提供程序应能够提供帧,而不可用的提供程序则不能。 在调用此方法之前,假定提供程序在已注册时可用。

适用于