Hunny Software Library Reference

MediaType Constructor (ByteString)

Constructor that takes an initial byte string argument.

[Visual Basic]
Overloads Public Sub New( _
   ByVal bstr As ByteString _
)
[C#]
public MediaType(
   ByteString bstr
);

Parameters

bstr
The initial value for the string representation.

Remarks

This constructor sets the MediaType object's string representation to bstr and sets its parent node to null.

Normally, you call the Parse() method immediately after this constructor to create the broken-down representation.

See Also

MediaType Class | Hunny.Mime Namespace | MediaType Constructor Overload List