AppServiceTriggerDetails.CheckCallerForCapabilityAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the caller of the app service has the specified capability.
public:
virtual IAsyncOperation<bool> ^ CheckCallerForCapabilityAsync(Platform::String ^ capabilityName) = CheckCallerForCapabilityAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> CheckCallerForCapabilityAsync(winrt::hstring const& capabilityName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> CheckCallerForCapabilityAsync(string capabilityName);
function checkCallerForCapabilityAsync(capabilityName)
Public Function CheckCallerForCapabilityAsync (capabilityName As String) As IAsyncOperation(Of Boolean)
Parameters
- capabilityName
-
String
Platform::String
winrt::hstring
The name of the capability.
Returns
True if it was possible to get the capabilities of the caller and the caller has the specified capability; false otherwise.
- Attributes
Windows requirements
Device family |
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v5.0)
|
Remarks
This API can only be called from within an app that is marked as an app service in its manifest. One use of this function is to determine whether a caller has the specified capability and, based on that, decide whether to share the requested data, a subset of the data, or no data.