Hunny Software Library Reference

BodyStructureData.ContentTypeParam Method 

Gets the parameter at the specified position in the Content-Type header field.

[Visual Basic]
Public Function ContentTypeParam( _
   ByVal index As Integer _
) As Parameter
[C#]
public Parameter ContentTypeParam(
   int index
);

Parameters

index
The position of the parameter.

Return Value

The parameter at the specified position.

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 call this method to get the parameter at a specific index value.

The parameter index must satisfy 0 <= index < NumContentTypeParams.

See Also

BodyStructureData Class | Hunny.Mail Namespace