Share via


ChatMessageAttachment(String, IRandomAccessStreamReference) Constructor

Definition

Initializes a new instance of the ChatMessageAttachment class.

public:
 ChatMessageAttachment(Platform::String ^ mimeType, IRandomAccessStreamReference ^ dataStreamReference);
 ChatMessageAttachment(winrt::hstring const& mimeType, IRandomAccessStreamReference const& dataStreamReference);
public ChatMessageAttachment(string mimeType, IRandomAccessStreamReference dataStreamReference);
function ChatMessageAttachment(mimeType, dataStreamReference)
Public Sub New (mimeType As String, dataStreamReference As IRandomAccessStreamReference)

Parameters

mimeType
String

Platform::String

winrt::hstring

The MIME type of the attachment.

dataStreamReference
IRandomAccessStreamReference

A stream containing the attachment data.

Windows requirements

App capabilities
chat chatSystem smsSend

Applies to