Creates a new instance of the toast message class with the given content type and body.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
contentType 
As 
ContentType, _
	
body 
As 
Byte() _
)
C#
public 
ToastMessage(
	
ContentType 
contentType,
	
byte[] 
body
)
Visual C++
public:
ToastMessage(
	
ContentType^ 
contentType, 
	
array<
unsigned char>^ 
body
)
JavaScript

Microsoft.Rtc.Collaboration.ToastMessage = 
function(
contentType, 
body);

Parameters

contentType
Type: ContentType
The content type.
body
Type: array< Byte > [] () []
The body for the toast.

Remarks

Some clients may not support content types other than "text/plain." For example, some versions of Office Communicator have this restriction.

See Also