C# Class CDO_EML_Parsing_Sample.CdoWrapper

The references in Visual Studio to Interop.ADODB and Interop.CDO must be marked as follows: - Embed Interop Types: false // if not, you will see compile error 'CDO.MessageClass' has no constructors defined' - Copy to local: true // needs to be in the bin folder You can manually create an interop DLL by pointing Visual Studio to the CDO and ADODB dll's The interop DLL's included here have the benefit that they are signed with a strong name. This helps if you need to use them from a signed assembly Signing was done by disassembling the generated interop DLL's, signing them and re-compiling them with ILASM
Mostrar archivo Open project: riesvriend/CDO-EML-Parsing-Sample Class Usage Examples

Public Methods

Method Description
GetString ( this bodypart ) : string
LoadMessage ( string emlFilePath ) : CDO.Message
TempSubfolder ( ) : string

Returns a random new sub folder of SystemTemp, like %TEMP%\12323

ToByteArray ( this stream ) : byte[]

Method Details

GetString() public static method

public static GetString ( this bodypart ) : string
bodypart this
return string

LoadMessage() public static method

public static LoadMessage ( string emlFilePath ) : CDO.Message
emlFilePath string
return CDO.Message

TempSubfolder() public static method

Returns a random new sub folder of SystemTemp, like %TEMP%\12323
public static TempSubfolder ( ) : string
return string

ToByteArray() public static method

public static ToByteArray ( this stream ) : byte[]
stream this
return byte[]