Share via


ActionRuntime.GetActionAvailability(String) Method

Definition

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

Boolean

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.

Applies to