TaskModuleTaskInfo 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TaskModuleTaskInfo() |
初始化 TaskModuleTaskInfo 類別的新執行個體。 |
| TaskModuleTaskInfo(String, Object, Object, String, Attachment, String, String) |
初始化 TaskModuleTaskInfo 類別的新執行個體。 |
TaskModuleTaskInfo()
TaskModuleTaskInfo(String, Object, Object, String, Attachment, String, String)
初始化 TaskModuleTaskInfo 類別的新執行個體。
public TaskModuleTaskInfo(string title = default, object height = default, object width = default, string url = default, Microsoft.Bot.Schema.Attachment card = default, string fallbackUrl = default, string completionBotId = default);
new Microsoft.Bot.Schema.Teams.TaskModuleTaskInfo : string * obj * obj * string * Microsoft.Bot.Schema.Attachment * string * string -> Microsoft.Bot.Schema.Teams.TaskModuleTaskInfo
Public Sub New (Optional title As String = Nothing, Optional height As Object = Nothing, Optional width As Object = Nothing, Optional url As String = Nothing, Optional card As Attachment = Nothing, Optional fallbackUrl As String = Nothing, Optional completionBotId As String = Nothing)
參數
- title
- String
出現在應用程式名稱和應用程式圖示右側。
- height
- Object
這可以是數位,以圖元表示工作模組的高度,或字串,其中一個為:小型、中型、大型。
- width
- Object
這可以是數位,以圖元表示任務模組的寬度,或字串,其中一個為:小、中、大。
- url
- String
工作模組內載入 iframe 之專案的 URL。 需要其中一個 URL 或卡片。
- card
- Attachment
要出現在工作模組中調適型卡片的 JSON。
- fallbackUrl
- String
如果客戶端不支援工作模組功能,則會在瀏覽器索引標籤中開啟此 URL。
- completionBotId
- String
指定一個機器人應用程式 ID,將使用者與任務模組互動的結果傳送給該 ID。 若指定,機器人會接收任務/提交呼叫事件,事件負載中有 JSON 物件。