Class MimeType

Class MimeType

名称: Aspose.Html 编辑: Aspose.HTML.dll (25.4.0)

代表互联网媒体类型

[ComVisible(true)]
public class MimeType : IEquatable<mimetype>

Inheritance

object MimeType

Implements

IEquatable

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

MimeType(线条)

启动一个新的 MIME 类型的例子,基于序列的序列值。

public MimeType(string value)

Parameters

value string

它的价值。

Properties

SubType

接收下媒体类型。

public string SubType { get; }

财产价值

string

Type

得到媒體類型。

public string Type { get; }

财产价值

string

Methods

Equals(MimeType)

指示当前对象是否与同类对象的其他对象相等。

public bool Equals(MimeType other)

Parameters

other MimeType

一个对象与这个对象相比。

Returns

bool

如果当前对象与 other’ 参数相同,则是真实的;否则是假的。

Equals(对象)

确定所指定的 System.Object 是否相当于当前的 System.Object。

public override bool Equals(object obj)

Parameters

obj object

System.Object 与现有 System.Object 相比。

Returns

bool

如果指定的 System.Object 与当前 System.Object 相同,否则是假的。

FromFileExtension(线条)

创建一个基于文件扩展的新 MIME 类型。

public static MimeType FromFileExtension(string fileName)

Parameters

fileName string

文件的名称。

Returns

MimeType

新例子MIME类型

GetHashCode()

返回此例的Hash代码。

public override int GetHashCode()

Returns

int

此例的哈希代码,适合在哈希算法和数据结构中使用,如哈希表。

ToString()

返回一个 System.String 代表 Mime 类型。

public override string ToString()

Returns

string

一个系统.String 代表这个实例。

Operators

主持人 =(MimeType , MimeType)

比较两个 Mime 类型,并返回一个 boolean 指示如果两者相匹配。

public static bool operator ==(MimeType a, MimeType b)

Parameters

a MimeType

第一個相對的Mime。

b MimeType

相似的第二个MIME。

Returns

bool

True 如果两项优先事项均等,否则 虚假.

暗示操作员 MimeType(线条)

从 System.String 转换为 Aspose.Html.MimeType。

public static implicit operator MimeType(string @string)

Parameters

string string

绳子。

Returns

MimeType

转换的结果。

随机运营商 string(MimeType)

从 Aspose.Html.MimeType 转换为 System.String。

public static implicit operator string(MimeType type)

Parameters

type MimeType

是MIME类型。

Returns

string

转换的结果。

运营商 !=(MimeType , MimeType)

比较两个 Mime 类型,并返回一个 boolean 指示如果两者相匹配。

public static bool operator !=(MimeType a, MimeType b)

Parameters

a MimeType

第一個相對的Mime。

b MimeType

相似的第二个MIME。

Returns

bool

True 如果两个优先事项不平等,否则 虚假.

看也

IEquatable

 中文