ContentTypeAttribute Constructor (String)
Initializes a new instance of the ContentTypeAttribute class.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public ContentTypeAttribute(
string contentType
)
public:
ContentTypeAttribute(
String^ contentType
)
new :
contentType:string -> ContentTypeAttribute
Public Sub New (
contentType As String
)
Parameters
contentType
Type: System.StringThe content type.
See Also
ContentTypeAttribute Class
Microsoft.Web.Mvc Namespace
Return to top