ServicesResourcesConferencesOur TeamWeblogsAboutContact
   
WinFS: Get a filename for an Item

Suppose you have a System.Storage.Item which is file backed and you need one of the underlying "original" file names:

ItemNameCollection foo = itm.GetItemNames();
foreach (ItemName name in foo)
{
   String path = name.FullPath;
}

Reason I'm posting this: I just spent way too much time in the debugger looking for this information. For obvious reasons, method return values aren't visible in the locals window. I hunted for a while, and traversed the tree dozens of times before I realized that this data might not be contained in a property but might instead be accessible only as a method return value.

posted on Saturday, February 07, 2004 9:41 PM

Powered by Community Server, by Telligent Systems