Condividi tramite


ISuggestedAction.HasActionSets Property

Definition

Gets whether this action has nested suggested action sets.

public:
 property bool HasActionSets { bool get(); };
public:
 property bool HasActionSets { bool get(); };
public bool HasActionSets { get; }
member this.HasActionSets : bool
Public ReadOnly Property HasActionSets As Boolean

Property Value

True if this action has nested suggested action sets, otherwise false.

Remarks

This property is expected to be fast so if calculating the return value is not trivial it's recommended to just return true and delay evaluating real list of nested actions until GetActionSetsAsync(CancellationToken) method is called. In other words, the scenario of HasActionSets returning true and GetActionSetsAsync(CancellationToken) returning null or empty list is supported. On the other hand, if this property returns false, GetActionSetsAsync(CancellationToken) method will not be called.

Applies to