ContextualSelector<T,R> 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
情境選擇器功能。
public delegate R ContextualSelector<in T,R>(IBotContext context, T item);
type ContextualSelector<'T, 'R> = delegate of IBotContext * 'T -> 'R
Public Delegate Function ContextualSelector(Of In T, R)(context As IBotContext, item As T) As R
類型參數
- R
選擇器的回傳類型。
參數
- context
- IBotContext
IBotContext 傳給選拔者。
- item
- T
這個數值會傳給選擇器。
傳回值
R
選擇器回傳的值。