Class MessageContentsContainer
Class for holding the Content-Type and the contents for a single contents block of a SIP message or an MSRP message.
Inherited Members
Namespace: SipLib.Body
Assembly: SipLib.dll
Syntax
public class MessageContentsContainer
Fields
| Edit this page View SourceBinaryContents
Contains the raw binary data. Will be non-null if IsBinaryContents is true.
Declaration
public byte[]? BinaryContents
Field Value
Type | Description |
---|---|
byte[] |
ContentDispositon
Contains the Content-Disposition header value. Will be null if there is no Content-Disposition header.
Declaration
public string? ContentDispositon
Field Value
Type | Description |
---|---|
string |
ContentID
Contains the Content-ID header value. Will be null if there is none.
Declaration
public string? ContentID
Field Value
Type | Description |
---|---|
string |
ContentLength
Contains the string value of the Content-Length header. Will be null if there is none. Optional for contents blocks in a message where the Contents-Type is multipart/mixed.
Declaration
public string? ContentLength
Field Value
Type | Description |
---|---|
string |
ContentTransferEncoding
Contains the Content-Transfer-Encoding header value. Will be null if there is none.
Declaration
public string? ContentTransferEncoding
Field Value
Type | Description |
---|---|
string |
ContentType
Contains the value of the Content-Type header that indicates the type of the body contents block.
Declaration
public string ContentType
Field Value
Type | Description |
---|---|
string |
ContentTypeParams
Contains a collection of parameters from the Content-Type header.
Declaration
public NameValueCollection ContentTypeParams
Field Value
Type | Description |
---|---|
NameValueCollection |
IsBinaryContents
If true, then the contents contains raw binary data that must not be converted to a string.
Declaration
public bool IsBinaryContents
Field Value
Type | Description |
---|---|
bool |
StringContents
Contains the message body contents as a string. Not null if IsBinaryContents is false.
Declaration
public string? StringContents
Field Value
Type | Description |
---|---|
string |