Default constructor.

public AllowContentTypeAttribute(params Type contentTypes)

Parameters

contentTypes Type

Content model types that content in this property must have.

In this article