ISuggestedAction.HasPreview Property
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 whether this suggested action can provide a preview via GetPreviewAsync(CancellationToken) method call.
public:
property bool HasPreview { bool get(); };
public:
property bool HasPreview { bool get(); };
public bool HasPreview { get; }
member this.HasPreview : bool
Public ReadOnly Property HasPreview As Boolean
Property Value
Returns Boolean.
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 whether a preview can be provided until GetPreviewAsync(CancellationToken) method is called. In other words, the scenario of HasPreview returning true
and GetPreviewAsync(CancellationToken) returning null is supported. On the other hand, if this property returns false
, GetPreviewAsync(CancellationToken) method will not be called.