IResponse::put_ContentType

The IResponse::put_ContentType method sets the value of the ContentType property of the Response object.

HRESULT put_ContentType(
  BSTR bstrContentType  //a binary string that contains the new 
                        // ContentType value
);
 

Parameters

bstrContentType
A binary string that contains the new ContentType value.

Remarks

You can use the ContentType value to set the content type to use when displaying the current Response object.

See Also

Response Object, IResponse::get_ContentType