Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Attachment Class

Definition

Namespace:
Microsoft.Agents.Core.Models
Assembly:
Microsoft.Agents.Core.dll
Package:
Microsoft.Agents.Core v1.4.83

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

An attachment within an activity.

public class Attachment
type Attachment = class
Public Class Attachment
Inheritance
Attachment
Derived

Constructors

Name Description
Attachment()

Initializes a new instance of Attachment.

Attachment(String, String, Object, String, String)

Initializes a new instance of Attachment.

Properties

Name Description
Content

Embedded content.

ContentType

mimetype/Contenttype for the file.

ContentUrl

Content Url.

Name

(OPTIONAL) The name of the attachment.

Properties

Gets properties that are not otherwise defined by the Activity type but that might appear in the serialized REST JSON object.

ThumbnailUrl

(OPTIONAL) Thumbnail associated with attachment.

Extension Methods

Name Description
ToMessagingExtensionAttachment(Attachment, Attachment)

Converts normal attachment into the messaging extension attachment.

Applies to


Feedback

Was this page helpful?