Text |
public TextPart( string subtype, params Object[] args )
| Exception | Condition |
|---|---|
| ArgumentNullException | subtype is . -or- args is . |
| ArgumentException | args contains more than one Encoding. -or- args contains more than one String. -or- args contains one or more arguments of an unknown type. |
Creates a new TextPart with the specified subtype.
Typically, the subtype should either be "plain" for plain text content or "html" for HTML content. For more options, check the MIME-type registry at http://www.iana.org/assignments/media-types/media-types.xhtml#text |