C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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[]

Описание методов

GetString() публичный статический Метод

public static GetString ( this bodypart ) : string
bodypart this
Результат string

LoadMessage() публичный статический Метод

public static LoadMessage ( string emlFilePath ) : CDO.Message
emlFilePath string
Результат CDO.Message

TempSubfolder() публичный статический Метод

Returns a random new sub folder of SystemTemp, like %TEMP%\12323
public static TempSubfolder ( ) : string
Результат string

ToByteArray() публичный статический Метод

public static ToByteArray ( this stream ) : byte[]
stream this
Результат byte[]