에서 Outlook.Folder 객체 생성 :에하우투 Outlook.Application.ActiveExplorer.CurrentFolder
Outlook.Explorer olExplorer = this.Application.ActiveExplorer();
을 "ThisAddin_StartUp는"나는에 olExplorer.FolderSwitch 이벤트를 등록 function olExplorer_FolderSwitch().
Outlook.Folder f = olExplorer.CurrentFolder as Outlook.Folder;
을 :하지만이 내가 현재 폴더에서 아웃룩 폴더 개체를 만들어야합니다 재산 "CurrentFolder는"타입 MAPIFolder이며 Outlook.Folder로 사용할 수 캔트. 어떻게 CurrentFolder- 속성을 Outlook.Folder에 "캐스팅"할 수 있습니까? - 이벤트 처리기를 잃어 버리지 않고? 난이 간단한 변환 개체를 할 경우 f를 행사 BeforeItemMove을 발생하지 않습니다 - F 이 NULL이기 때문에 olExplorer.CurrentFolder가
Explorer.CurrentFolder는 MAPIFolder 형식의 개체를 반환합니다. – Vasyl