Show / Hide Table of Contents

Class XFrameOptionsHeaderValue

Represents value of X-Frame-Options header.

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

Constructors

XFrameOptionsHeaderValue(XFrameOptionsDirectives)

Instantiates a new XFrameOptionsHeaderValue.

Declaration
public XFrameOptionsHeaderValue(XFrameOptionsDirectives directive)
Parameters
Type Name Description
XFrameOptionsDirectives directive

The directive.

XFrameOptionsHeaderValue(String)

Instantiates a new XFrameOptionsHeaderValue with AllowFrom directive.

Declaration
public XFrameOptionsHeaderValue(string origin)
Parameters
Type Name Description
System.String origin

The serialized origin.

Properties

Directive

Gets or sets the directive.

Declaration
public XFrameOptionsDirectives Directive { get; set; }
Property Value
Type Description
XFrameOptionsDirectives

Origin

Gets or sets the serialized origin for AllowFrom directive.

Declaration
public string Origin { get; set; }
Property Value
Type Description
System.String

Methods

ToString()

Gets the string representation of header value.

Declaration
public override string ToString()
Returns
Type Description
System.String

The string representation of header value.

Overrides
System.Object.ToString()
Back to top Copyright © 2016 - 2023 Tomasz Pęczek