ISuggestedAction::HasPreview Property

Visual Studio 2015
 

Determines whether this suggested action can provide a preview via GetPreviewAsync(CancellationToken)./// </summary>/// <remarks> </remarks>

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

property bool HasPreview {
	bool get();
}

Property Value

Type: System::Boolean

Returns Boolean.

This property is expected to be fast, so if calculating the return value is not trivial it's recommended to just return trueand delay evaluating whether a preview can be provided until GetPreviewAsync(CancellationToken) is called. In other words, the scenario of < HasPreview returning trueand GetPreviewAsync(CancellationToken) returning null is supported. On the other hand, if this property returns false, GetPreviewAsync(CancellationToken) will not be called.

Return to top
Show: