IFormatFilter Interface

Summary

A filter which produces a desired content type for the current request.

Syntax

public interface IFormatFilter : IFilter

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.IFormatFilter

Properties

ContentType()

@!:MediaTypeHeaderValue- for the format value in the current request.

Return type:MediaTypeHeaderValue
MediaTypeHeaderValue ContentType { get; }
Format()

format value in the current request. <c>null</c> if format not present in the current request.

Return type:System.String
string Format { get; }
IsActive()

<c>true</c> if the current [Microsoft.AspNet.Mvc.FormatFilter](Microsoft.AspNet.Mvc.FormatFilter.yml) is active and will execute.

Return type:System.Boolean
bool IsActive { get; }