ActionRuntime.GetActionAvailability(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.
Gets a value indicating whether the specified entity is currently in the available state.
public:
virtual bool GetActionAvailability(Platform::String ^ actionId) = GetActionAvailability;
bool GetActionAvailability(winrt::hstring const& actionId);
public bool GetActionAvailability(string actionId);
function getActionAvailability(actionId)
Public Function GetActionAvailability (actionId As String) As Boolean
Parameters
- actionId
-
String
Platform::String
winrt::hstring
The ID of the entity for which availability status is queried. The ID is dynamically assigned by the system when the entity is created, such as through one of the ActionEntityFactory entity creation methods.
Returns
bool
True if the action is currently available; otherwise, false.
Remarks
For information on app action availability, see Toggle availability of an App Action for Windows.