Hunny Software Library Reference

MediaType.Parse Method 

Parses the string representation.

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

Remarks

This method, inherited from Node, executes the parse operation for MediaType objects. The parse operation creates or updates the broken-down representation from the string representation. For MediaType objects, the parse operation parses the string representation to extract the type, subtype, and the list of Parameter objects. This method also calls the Parse() method of each Parameter object in its list.

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

This method clears the is-modified flag.

See Also

MediaType Class | Hunny.Mime Namespace