SearchSuggestionCollection.Size Property

Definition

The number of suggestions in the collection.

public:
 property unsigned int Size { unsigned int get(); };
uint32_t Size();
public uint Size { get; }
var uInt32 = searchSuggestionCollection.size;
Public ReadOnly Property Size As UInteger

Property Value

UInt32

unsigned int

uint32_t

The number of suggestions.

Remarks

Important

To implement search in an app for Windows 10 or later, use AutoSuggestBox. See Auto-suggest box for more info.

You should not use Windows.ApplicationModel.Search APIs (SearchPane, SearchContract) or SearchBox APIs in apps for Windows 10 or later.

The search pane can display 5 suggestions, at most. Additionally, each separator you use takes the place of a suggestion and lowers the number of suggestions that you can display.

Applies to

See also