Class MimeType
Inheritance
System.Object
MimeType
Assembly: Steeltoe.Common.dll
Syntax
public class MimeType : IComparable<MimeType>
Constructors
|
Edit this page
View Source
MimeType(MimeType, Encoding)
Declaration
public MimeType(MimeType other, Encoding charset)
Parameters
Type |
Name |
Description |
MimeType |
other |
|
Encoding |
charset |
|
|
Edit this page
View Source
MimeType(MimeType, IDictionary<String, String>)
Declaration
public MimeType(MimeType other, IDictionary<string, string> parameters = null)
Parameters
Type |
Name |
Description |
MimeType |
other |
|
IDictionary<System.String, System.String> |
parameters |
|
|
Edit this page
View Source
MimeType(String)
Declaration
public MimeType(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
|
|
Edit this page
View Source
MimeType(String, String)
Declaration
public MimeType(string type, string subtype)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
subtype |
|
|
Edit this page
View Source
MimeType(String, String, Encoding)
Declaration
public MimeType(string type, string subtype, Encoding charset)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
subtype |
|
Encoding |
charset |
|
|
Edit this page
View Source
MimeType(String, String, IDictionary<String, String>)
Declaration
public MimeType(string type, string subtype, IDictionary<string, string> parameters)
Parameters
Type |
Name |
Description |
System.String |
type |
|
System.String |
subtype |
|
IDictionary<System.String, System.String> |
parameters |
|
Fields
|
Edit this page
View Source
WILDCARD_TYPE
Declaration
public const string WILDCARD_TYPE = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
Encoding
Declaration
public Encoding Encoding { get; }
Property Value
Type |
Description |
Encoding |
|
|
Edit this page
View Source
IsConcrete
Declaration
public bool IsConcrete { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsWildcardSubtype
Declaration
public bool IsWildcardSubtype { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsWildcardType
Declaration
public bool IsWildcardType { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Parameters
Declaration
public IDictionary<string, string> Parameters { get; }
Property Value
Type |
Description |
IDictionary<System.String, System.String> |
|
|
Edit this page
View Source
Subtype
Declaration
public string Subtype { get; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Type
Declaration
public string Type { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
CheckParameters(String, String)
Declaration
protected void CheckParameters(string attribute, string value)
Parameters
Type |
Name |
Description |
System.String |
attribute |
|
System.String |
value |
|
|
Edit this page
View Source
CompareTo(MimeType)
Declaration
public int CompareTo(MimeType other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
EqualsTypeAndSubtype(MimeType)
Declaration
public bool EqualsTypeAndSubtype(MimeType other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Edit this page
View Source
GetParameter(String)
Declaration
public string GetParameter(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Includes(MimeType)
Declaration
public bool Includes(MimeType other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsCompatibleWith(MimeType)
Declaration
public bool IsCompatibleWith(MimeType other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsPresentIn<T>(ICollection<T>)
Declaration
public bool IsPresentIn<T>(ICollection<T> mimeTypes)
where T : MimeType
Parameters
Type |
Name |
Description |
ICollection<T> |
mimeTypes |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Edit this page
View Source
ToMimeType(String)
Declaration
public static MimeType ToMimeType(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Unquote(String)
Declaration
protected string Unquote(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
Type |
Description |
System.String |
|