RemoteSystem.GetCapabilitySupportedAsync(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
报告 RemoteSystem 是否能够使用给定的远程系统功能。
public:
virtual IAsyncOperation<bool> ^ GetCapabilitySupportedAsync(Platform::String ^ capabilityName) = GetCapabilitySupportedAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetCapabilitySupportedAsync(winrt::hstring const& capabilityName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetCapabilitySupportedAsync(string capabilityName);
function getCapabilitySupportedAsync(capabilityName)
Public Function GetCapabilitySupportedAsync (capabilityName As String) As IAsyncOperation(Of Boolean)
参数
- capabilityName
-
String
Platform::String
winrt::hstring
要检查的远程系统功能。 这应该是 KnownRemoteSystemCapabilities 属性之一的值。
返回
如果 RemoteSystem 支持,则为值为 true 的异步操作,否则为 false。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|
应用功能 |
remoteSystem
|