Outlook의 메일 첨부 파일의 콘텐츠 ID를 가져 오려고합니다. Add-In Express를 Add-In 용으로 사용하지만 가져올 기능이 없습니다.첨부 파일 가져 오기 ContentID
나는 보너스 라이브러리에 대해 알고 있지만 무료는 아니며 따라서 나를위한 옵션도 아닙니다.
Outlook 2007에는 PropertyAccessor가 있습니다.이 기능을 사용할 수는 있지만 작동시키지 못합니다. 여기
내 코드 :
string uniqueId = "";
object props = a.GetType().InvokeMember("PropertyAccessor", BindingFlags.Public | BindingFlags.GetField | BindingFlags.GetProperty, null, a, null);
object[] args = new object[1];
args[0] = @"urn:schemas:mailheader:content-id";
object value = props.GetType().InvokeMember("GetProperty", BindingFlags.Public | BindingFlags.InvokeMethod, null, props, args);
if ((string)value != null) {
uniqueId = (string)value;
}
"a"는 추가 기능 익스프레스는 MailItem에서받은 첨부 파일입니다.
"예외 대상이 호출 대상에 의해 throw되었습니다."
나를 도와 줄 사람이 있습니까?