ContentType Struct

Definition

Represents content type.

public struct ContentType : IEquatable<Azure.Core.ContentType>, IEquatable<string>
type ContentType = struct
Public Structure ContentType
Implements IEquatable(Of ContentType), IEquatable(Of String)
Inheritance
System.ValueType
ContentType
Implements
System.IEquatable<ContentType> System.IEquatable<System.String>

Constructors

ContentType(String)

Creates an instance of ContentType.

Properties

ApplicationJson

application/json

ApplicationOctetStream

application/json

TextPlain

application/json

Methods

Equals(ContentType)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(String)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

Equality(ContentType, ContentType)

Compares equality of two ContentType instances.

Implicit(String to ContentType)

Creates an instance of ContentType.

Inequality(ContentType, ContentType)

Compares inequality of two ContentType instances.

Applies to