語言

AwaitableFromSource<TSource,TItem> 類別

定義

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

public sealed class AwaitableFromSource<TSource,TItem> : Microsoft.Bot.Builder.Dialogs.IAwaitable<TItem>, Microsoft.Bot.Builder.Internals.Fibers.IAwaiter<TItem>, System.Runtime.CompilerServices.INotifyCompletion
type AwaitableFromSource<'Source, 'Item> = class
    interface IAwaitable<'Item>
    interface IAwaiter<'Item>
    interface INotifyCompletion
Public NotInheritable Class AwaitableFromSource(Of TSource, TItem)
Implements IAwaitable(Of TItem), IAwaiter(Of TItem), INotifyCompletion

類型參數

TSource

建造物品的來源類型。

TItem

物品的類型。

繼承
AwaitableFromSource<TSource,TItem>
實作

建構函式

名稱 Description
AwaitableFromSource<TSource,TItem>(TSource, Func<TSource,Task<TItem>>)

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

屬性

名稱 Description
IsCompleted

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

方法

名稱 Description
GetAwaiter()

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

GetResult()

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

OnCompleted(Action)

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

擴充方法

名稱 Description
ToTask<T>(IAwaitable<T>)

建立 IAwaitable<T> 一個從源碼傳給建構子的檔案。

適用於