IFormatFilter Interface¶
A filter that produces the desired content type for the request.
- Namespace
Microsoft.AspNetCore.Mvc.Formatters.Internal- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public interface IFormatFilter : IFilterMetadata
-
interface
Microsoft.AspNetCore.Mvc.Formatters.Internal.IFormatFilter
Methods¶
-
GetFormat(Microsoft.AspNetCore.Mvc.ActionContext)¶ Gets the format value for the request associated with the provided
Microsoft.AspNetCore.Mvc.ActionContext.Arguments: context (Microsoft.AspNetCore.Mvc.ActionContext) – The Microsoft.AspNetCore.Mvc.ActionContextassociated with the current request.Return type: System.String Returns: A format value, or <code>null</code> if a format cannot be determined for the request. string GetFormat(ActionContext context)
-