IHTMLParamElement2::type Property
Sets or retrieves the content type of the resource designated by the value attribute.
Syntax
HRESULT IHTMLParamElement2::get_type(BSTR *p); HRESULT IHTMLParamElement2::put_type(BSTR v);
Parameters
- p
Pointer to a variable of type BSTR that receives the content type of the resource designated by the IHTMLParamElement::value attribute, only in the case where IHTMLParamElement2::valueType is set toref. This attribute thus specifies for the user agent the type of values that will be found at the Uniform Resource Identifier (URI) designated by value.- v
BSTR that specifies the content type of the resource designated by the IHTMLParamElement::value attribute, only in the case where IHTMLParamElement2::valueType is set toref. This attribute thus specifies for the user agent the type of values that will be found at the URI designated by value.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The content type specifies the nature of a linked resource. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered content types, see MIME Media Types.
IHTMLParamElement::type was introduced in Microsoft Internet Explorer 6
See Also