Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.CorsJsonResult Class

A JSON action result which includes an Access-Control-Allow-Origin header.

Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Inheritance

Syntax

public class CorsJsonResult : YetaWF.Core.Controllers.YJsonResult;

Constructors

PublicCorsJsonResultConstructor.

Properties

PublicInherited from Microsoft.AspNetCore.Mvc.JsonResultContentTypeGets or sets the MediaTypeHeaderValue representing the Content-Type header of the response.
PublicInherited from YetaWF.Core.Controllers.YJsonResultData(not specified)
PublicInherited from Microsoft.AspNetCore.Mvc.JsonResultSerializerSettingsGets or sets the serializer settings. <para> When using <c>System.Text.Json</c>, this should be an instance of JsonSerializerOptions</para><para> When using <c>Newtonsoft.Json</c>, this should be an instance of <c>JsonSerializerSettings</c>. </para>
PublicInherited from Microsoft.AspNetCore.Mvc.JsonResultStatusCodeGets or sets the HTTP status code.
PublicTargetDomainDefines the allowable target domain. Specify "*" for all domains.
PublicInherited from Microsoft.AspNetCore.Mvc.JsonResultValueGets or sets the value to be formatted.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
PublicInherited from Microsoft.AspNetCore.Mvc.ActionResultExecuteResultExecutes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.
PublicExecuteResultAsyncProcesses the action result.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview