ChatModelFactory.ChatAttachment Method

Definition

Initializes a new instance of the ChatAttachment(String, ChatAttachmentType, String, Uri, Uri) class.

public static Azure.Communication.Chat.ChatAttachment ChatAttachment (string id, Azure.Communication.Chat.ChatAttachmentType attachmentType, string name, Uri uri, Uri previewUri);
static member ChatAttachment : string * Azure.Communication.Chat.ChatAttachmentType * string * Uri * Uri -> Azure.Communication.Chat.ChatAttachment
Public Shared Function ChatAttachment (id As String, attachmentType As ChatAttachmentType, name As String, uri As Uri, previewUri As Uri) As ChatAttachment

Parameters

id
String

Id of the attachment.

attachmentType
ChatAttachmentType

The type of attachment.

name
String

The name of the attachment content.

uri
Uri

The URI where the attachment can be downloaded.

previewUri
Uri

The URI where the preview of attachment can be downloaded.

Returns

A new ChatAttachment(String, ChatAttachmentType, String, Uri, Uri) instance for mocking.

Applies to