Hunny Software Library Reference

MediaType.Assemble Method 

Assembles the string representation.

[Visual Basic]
Overrides Public Sub Assemble()
[C#]
public override void Assemble();

Remarks

This method, inherited from Node, executes the assemble operation for MediaType objects. The assemble operation creates or updates the string representation from the broken-down representation. For MediaType objects, the assemble operation builds the string representation from the type, subtype, and list of Parameter objects. Before it builds the string representation for the MediaType object, this method first calls the Assemble() method of each Parameter object in its list.

You should call this method after you set or modify the type, subtype, or any of the contained Parameter objects, and before you retrieve the string representation.

This method clears the is-modified flag.

See Also

MediaType Class | Hunny.Mime Namespace