MimePartContentDescription Class
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.
Represents a part of a MIME body of a SIP message. A part can represent SDP part or a custom part or a mime/alternative part or a mime/mixed part of a mime body.
public ref class MimePartContentDescription : Microsoft::Rtc::Signaling::ContentDescription
public class MimePartContentDescription : Microsoft.Rtc.Signaling.ContentDescription
type MimePartContentDescription = class
inherit ContentDescription
Public Class MimePartContentDescription
Inherits ContentDescription
- Inheritance
Remarks
If a MIME body is represented in the form of a tree with parent and child nodes, this class would represent a node in the tree. For example, the root represents the entire MIME part and the child nodes represent parts contained immediately inside the outer MIME part.
Thus, an intermediate node in the tree will always represent a mime/alternative or a mime/mixed part. The leaves of the tree represent other content types including SDP or a custom part such as text/plain.
Constructors
MimePartContentDescription(ContentType, Byte[]) |
Creates a new instance of the MimePartContentDescription class. |
Fields
ContentDispositionType_Alert |
Indicates that the MIME part is a custom ring tone to alert the user. |
ContentDispositionType_Icon |
Indicates that the MIME part should be displayed to the user as an icon. |
ContentDispositionType_Inline |
Indicates that the MIME part should be displayed automatically. |
ContentDispositionType_Render |
Indicates that the MIME part should be displayed to the user. |
ContentDispositionType_Session |
Indicates that the MIME part describes a communication session. |
Properties
Children |
Gets a collection of MIME parts contained in a MIME/mixed or MIME/alternative body. This collection is empty when the Content-Type of the MIME part differs from multipart/mixed or multipart/alternative. |
ContentDispositionHeader |
Gets or sets the Content-Disposition header of the MIME part. |
ContentDispositionType |
Gets or sets the Content-Disposition of the MIME part. |
ContentId |
Gets or sets the Content-ID of the MIME part. Can be null. |
ContentIdHeader |
Gets or sets the Content-ID header of the MIME part. Can be null when the Content-ID header is missing. |
ContentType |
Gets or sets the ContentType for the body or null if none is specified. (Inherited from ContentDescription) |
ContentTypeHeader |
Gets the Content-Type header of the MIME part. |
IsHandlingRequired |
Gets or sets whether the handling of the MIME part is required. |
Parent |
Gets the parent of the MIME part. The parent MIME part can be null when the MIME part is the top node. |
SignalingHeaders |
Gets the list of signaling headers including Content-Id, Content-Type, and Content-Disposition. |
Methods
Add(MimePartContentDescription) |
Adds one MIME part to the end of the child MIME part list. |
GetBody() |
Represents the body in byte or null, if there is none. (Inherited from ContentDescription) |
RecomputeBody() |
Recomputes the body of this instance. |
Remove(MimePartContentDescription) |
Removes the first occurrence of a MIME part from the list of child MIME parts. |
RemoveAt(Int32) |
Removes the MIME part located at the specified index of the list of child MIME parts. |
SetBody(Byte[]) |
Sets the body content. (Inherited from ContentDescription) |
ToString() |
Represents MediaDescription as a string. (Inherited from ContentDescription) |
Extension Methods
UpdateContentDispositionType(MimePartContentDescription, String, Boolean) |