[This is preliminary documentation and is subject to change.]

Sets the response Content-Type header.

Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public static void SetContentType(

this IResponse response,

string contentType

)

VB

Public Shared Sub SetContentType( _

response As IResponse, _

contentType As String _

)

C++

public:

static void SetContentType(

IResponse^ response,

String^ contentType

)

Parameters

contentType
Type: System.StringSystem.StringSystem::String
The content type. This should be a valid media type.

See Also

ResponseExtensionsResponseExtensionsResponseExtensions Class
Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace