ContentDescription Constructor (ContentType, String)
Initializes an instance of the class with parameters.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
contentType As ContentType, _
body As String _
)
'Usage
Dim contentType As ContentType
Dim body As String
Dim instance As New ContentDescription(contentType, _
body)
public ContentDescription(
ContentType contentType,
string body
)
Parameters
- contentType
Type: System.Net.Mime.ContentType
The content type.
- body
Type: System.String
The message body of the Invite message.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the character set on the content type is not supported. |