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
파일 보기 프로젝트 열기: riesvriend/CDO-EML-Parsing-Sample 1 사용 예제들

공개 메소드들

메소드 설명
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[]