IMimeBody::SetCurrentEncoding method

Sets the current encoding type for the data that is stored in the body.

Syntax

HRESULT SetCurrentEncoding(
  [in] ENCODINGTYPE ietEncoding
);

Parameters

ietEncoding [in]

Type: ENCODINGTYPE

Specifies the new ENCODINGTYPE value for data stored in the body.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that ietEncoding is greater than or equal to IET_UNKNOWN.

Remarks

Usually, a client does not need to set the encoding type. The actual data stored in the body is not affected when this method is called. This encoding type represents how the data stored in the body is currently encoded so a client must be careful that the current encoding type describes how the data is actually encoded.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)