Show / Hide Table of Contents

Class ContentSecurityPolicyMediaType

Represents a MIME type in the plugin-types directive in content security policy.

Inheritance
Object
ContentSecurityPolicyMediaType
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: IRM.AspNetCore.Http.Headers
Assembly: IRM.AspNetCore.Mvc.dll
Syntax
public class ContentSecurityPolicyMediaType

Constructors

ContentSecurityPolicyMediaType(String)

Creates a new instance of ContentSecurityPolicyMediaType.

Declaration
public ContentSecurityPolicyMediaType(string subType)
Parameters
String subType

The subType part for the MIME type.

ContentSecurityPolicyMediaType(String, String)

Creates a new instance of ContentSecurityPolicyMediaType.

Declaration
public ContentSecurityPolicyMediaType(string type, string subType)
Parameters
String type

The type part for the MIME type.

String subType

The subType part for the MIME type.

Properties

SubType

Gets or sets the subtype part of the MIME type.

Declaration
public string SubType { get; set; }
Property Value
String

Type

Gets or sets the type part of the MIME type.

Declaration
public string Type { get; set; }
Property Value
String

Methods

ToString()

Gets the MIME type (type/subtype).

Declaration
public override string ToString()
Returns
String

The MIME type (type/subtype).

Overrides
System.Object.ToString()
Back to top Generated by DocFX