Hunny Software Library Reference

BodyStructureData.NumContentTypeParams Property

Gets the number of parameters in the Content-Type header field.

[Visual Basic]
Public ReadOnly Property NumContentTypeParams As Integer
[C#]
public int NumContentTypeParams {get;}

Property Value

The number of parameters in the Content-Type header field.

Remarks

The Content-Type header field may contain parameters that provide further information about the media type of the content. Examples of commonly used parameters include the charset parameter, which indicates the character encoding of text content, and the name parameter, which indicates the file name of a file attachment. The IMAP4 server parses the parameters of the Content-Type header field and includes them in a BODYSTRUCTURE structure.

You may get the value of this property to learn how many parameters are present in the BODYSTRUCTURE structure. Call the ContentTypeParam method to get the parameter at a specific index value.

See Also

BodyStructureData Class | Hunny.Mail Namespace