CommandQueryEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Supplies a query and the results to display for server filtering.
- C#
- VB.NET
public class CommandQueryEventArgs : EventArgs
Public Class CommandQueryEventArgs
Inherits EventArgs
Set Results during QueryChanged; asynchronous event handlers are not supported. In Client mode Results is ignored. In Server mode null uses built-in filtering of Commands; an empty sequence deliberately displays no matches. Returned objects are snapshotted after the handler.
Example:
palette.QueryChanged += (s, e) => e.Results = FindCommands(e.Query);
Constructors
CommandQueryEventArgs(query)
Creates query event data.
| Name | Type | Description |
|---|---|---|
| query | String | The normalized query. |
Properties
Query
String: Gets the query entered by the user or passed to Show.
Results
IEnumerable<PaletteCommand>: Gets or sets results for this query, preserving application ordering within each category.