回答

3

您可以使用PR_FOLDER_PATHNAME應包含完整路徑的擴展屬性。例如:

ExtendedPropertyDefinition FolderPath = new ExtendedPropertyDefinition(0x66B5, MapiPropertyType.String); 
PropertySet psset1 = new PropertySet(BasePropertySet.FirstClassProperties); 
psset1.Add(FolderPath); 

Folder FolderwithPath = Folder.Bind(service, WellKnownFolderName.Inbox, psset1); 
Object FolderPathVal = null; 
if (FolderwithPath.TryGetProperty(FolderPath,out FolderPathVal)) 
{ 
    Console.WriteLine(FolderPathVal); 
} 
+0

嘿格倫...只是想讓你知道我不是選擇你。我正在做很多EWS API代碼的閱讀,並且你一直在想。保持良好的工作。 – Matt

相關問題