[propget] HRESULT TypeName([out, retval] BSTR * contentType);
[propput] HRESULT TypeName([in] BSTR contentType);
The type of the attachment, the format of which depends on what the TypeNameFormat property is set to, typically this is either a MIME media type such as text/plain, image/gif, text/xml or an AbsoluteURI type identifier, as detailed in the DIME specification, such as "http://schemas.xmlsoap.org/soap/envelope/"
The current typeName of the attachment as a string
' create the attachment, and create a reference between the attachment and the parameter set a = mgr.Request.Create ("c:\picture.gif", tnfMediaType, "image/gif") if a.TypeNameFormat = tnfMediaType then wscript.echo "media type = " & a.TypeName end if
Copyright © Simon Fell, 2000-2004. All rights reserved.