共用方式為


RemoteSystem.GetCapabilitySupportedAsync(String) 方法

定義

報告 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

適用於