Hunny Software Library Reference

MediaType Methods

The methods of the MediaType class are listed below. For a complete list of MediaType class members, see the MediaType Members topic.

Public Instance Methods

AddParameter Adds a parameter to the end of the list.
Assemble Assembles the string representation.
Clone Creates a copy of this object.
CreateBoundary Creates a string suitable for use as a boundary parameter.
DeleteAllParameters Deletes all parameters in the list.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
InsertParameterAt Inserts a parameter at the specified position.
ParameterAt Gets the parameter at the specified position.
Parse Parses the string representation.
RemoveParameterAt Removes the parameter at the specified position.
ToString (inherited from Node) Returns the string representation as a System.String.
TypeAsEnum Gets the primary type as an enumerated value.
TypeFromEnum Sets the primary type from an enumerated value.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MaybeFold (inherited from FieldBody) Folds the string representation, if line folding is enabled.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MediaType Class | Hunny.Mime Namespace