你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContentType 结构

定义

表示内容类型。

public readonly struct ContentType : IEquatable<Azure.Core.ContentType>, IEquatable<string>
type ContentType = struct
Public Structure ContentType
Implements IEquatable(Of ContentType), IEquatable(Of String)
继承
ContentType
实现

构造函数

ContentType(String)

创建 ContentType 的实例。

属性

ApplicationJson

application/json

ApplicationOctetStream

application/octet-stream

TextPlain

text/plain

方法

Equals(ContentType)

指示当前对象是否等于同一类型的另一个对象。

Equals(Object)

指示此实例与指定对象是否相等。

Equals(String)

指示当前对象是否等于同一类型的另一个对象。

GetHashCode()

返回此实例的哈希代码。

ToString()

返回此实例的完全限定类型名称。

运算符

Equality(ContentType, ContentType)

比较两 ContentType 个实例的相等性。

Implicit(String to ContentType)

创建 ContentType 的实例。

Inequality(ContentType, ContentType)

比较两 ContentType 个实例的不相等性。

适用于