Attachment 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Attachment() |
初始化 Attachment 類別的新執行個體。 |
| Attachment(String, String, Object, String, String) |
初始化 Attachment 類別的新執行個體。 |
Attachment()
Attachment(String, String, Object, String, String)
初始化 Attachment 類別的新執行個體。
public Attachment(string contentType = default, string contentUrl = default, object content = default, string name = default, string thumbnailUrl = default);
new Microsoft.Bot.Schema.Attachment : string * string * obj * string * string -> Microsoft.Bot.Schema.Attachment
Public Sub New (Optional contentType As String = Nothing, Optional contentUrl As String = Nothing, Optional content As Object = Nothing, Optional name As String = Nothing, Optional thumbnailUrl As String = Nothing)
參數
- contentType
- String
檔案的 mimetype/ContentType。
- contentUrl
- String
內容網址。
- content
- Object
嵌入內容。
- name
- String
(可選)附件的名字。
- thumbnailUrl
- String
(可選)縮圖與依附有關。