ToastMessage Constructors
Definition
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.
Overloads
ToastMessage(String) |
Creates a new instance of the ToastMessage class with the given message. |
ToastMessage(ContentType, Byte[]) |
Creates a new instance of the ToastMessage class with the given content type and body. |
ToastMessage(String)
Creates a new instance of the ToastMessage class with the given message.
public:
ToastMessage(System::String ^ message);
public ToastMessage (string message);
new Microsoft.Rtc.Collaboration.ToastMessage : string -> Microsoft.Rtc.Collaboration.ToastMessage
Public Sub New (message As String)
Parameters
- message
- String
The toast message.
Remarks
A toast message is always created with ContentType of "text/plain".
Applies to
ToastMessage(ContentType, Byte[])
Creates a new instance of the ToastMessage class with the given content type and body.
public:
ToastMessage(System::Net::Mime::ContentType ^ contentType, cli::array <System::Byte> ^ body);
public ToastMessage (System.Net.Mime.ContentType contentType, byte[] body);
new Microsoft.Rtc.Collaboration.ToastMessage : System.Net.Mime.ContentType * byte[] -> Microsoft.Rtc.Collaboration.ToastMessage
Parameters
- contentType
- ContentType
The content type.
- body
- Byte[]
The body for the toast.
Remarks
Some clients may not support content types other than "text/plain." For example, some versions of Microsoft Communicator have this restriction.