共用方式為


ContentStream 類別

定義

固定或無限長度的資料流程,包含要解碼的內容。

public class ContentStream : Microsoft.Bot.Streaming.Payloads.IContentStream
type ContentStream = class
    interface IContentStream
Public Class ContentStream
Implements IContentStream
繼承
ContentStream
實作

建構函式

ContentStream(Guid, PayloadStreamAssembler)

初始化 ContentStream 類別的新執行個體。

屬性

ContentType

取得或設定這個 ContentStream 中包含的物件類型名稱。

Id

取得 GUID,用來作為這個 ContentStream 的唯一識別碼。

Length

取得或設定這個 ContentStream 的長度。

Stream

取得此 ContentStream 中包含的資料。

方法

Cancel()

呼叫 以取消此實例的處理。 在指派 PayloadStreamAssembler 的 上呼叫 Close () 。

適用於