<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Longhorn People &amp; Groups : Longhorn</title><link>http://blogs.msdn.com/darkcanuck/archive/tags/Longhorn/default.aspx</link><description>Tags: Longhorn</description><dc:language>en-CA</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Contact Addresses</title><link>http://blogs.msdn.com/darkcanuck/archive/2003/10/27/51969.aspx</link><pubDate>Mon, 27 Oct 2003 22:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:51969</guid><dc:creator>darkcanuck</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/darkcanuck/comments/51969.aspx</comments><wfw:commentRss>http://blogs.msdn.com/darkcanuck/commentrss.aspx?PostID=51969</wfw:commentRss><description>&lt;body xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;p&gt;
        Unfortunately the WinFS Contact schema for addresses is pretty ugly in the PDC build.&amp;#160;
        We're working to fix it, but for now you're going to have to live with some pain. 
    &lt;/p&gt;
    &lt;p&gt;
        Person.PersonalAddresses is just there to trick you.&amp;#160; The shell UI isn't actually
        hooked up to it.&amp;#160; We used to use it and store the information in a PostalAddress,
        but then someone invented Locations and we thought it would be cool to use them instead
        (I blame &lt;a href="http://walteratwork.com"&gt;Walter&lt;/a&gt;).&amp;#160; Sadly, we couldn't convert
        all the code right away so we had to leave the PersonalAddresses collection in place.&amp;#160;
        I think everything is converted by now, but we didn't take it out for the PDC just
        so we could confuse everyone.&amp;#160; Sometimes we suck... 
    &lt;/p&gt;
    &lt;p&gt;
        So, you should use Contact.Locations instead.&amp;#160; If you look at the schema you'll
        see that Contact.Locations is a collection of WinFS.Links.&amp;#160; That means this isn't
        as easy to use as the Person.PersonalAddresses collection.&amp;#160; You' ll have to do
        a FindOne for the target of each link and build your own collection.&amp;#160; This will
        become much nicer and cleaner with the next batch of WinFS changes, but for now the
        code below may help. 
    &lt;/p&gt;
    &lt;pre&gt;using WinFS = System.Storage;
internal static ArrayList GetAddresses(WinFS.Contact.Person p)
{
    ArrayList coll = new ArrayList();

    foreach (WinFS.Link linkLoc in p.Locations)
    {
        string strFilter = "ItemIDKey=" + WinFS.Util.ByteArrayToHexString(
                                                linkLoc.TargetKey);
        WinFS.Core.LocationElement loc = WinFS.Core.LocationElement.FindOne(
                                                p.ItemContext, strFilter);
        if (loc != null &amp;amp;&amp;amp; loc is WinFS.Location.Address)
        {
            coll.Add(loc);
        }
    }
    return coll;
}
&lt;/pre&gt;
    &lt;p&gt;
        All I can say is sorry... 
    &lt;/p&gt;
&lt;/body&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=51969" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/People+_2600_+Groups/default.aspx">People &amp; Groups</category><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/Longhorn/default.aspx">Longhorn</category></item><item><title>Removed Entry</title><link>http://blogs.msdn.com/darkcanuck/archive/2003/10/24/51966.aspx</link><pubDate>Fri, 24 Oct 2003 07:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:51966</guid><dc:creator>darkcanuck</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/darkcanuck/comments/51966.aspx</comments><wfw:commentRss>http://blogs.msdn.com/darkcanuck/commentrss.aspx?PostID=51966</wfw:commentRss><description>&lt;body xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;p&gt;
        &lt;a href="http://blogs.gotdotnet.com/jonper/"&gt;Jon&lt;/a&gt; and I had a couple of entries
        about workarounds for some PDC problems.&amp;#160; Apparently we got in trouble for posting
        them before Monday.&amp;#160; Stay tuned, they'll be back when they're actually useful. 
    &lt;/p&gt;
    &lt;p&gt;
        We'll try to keep you updated with information about Windows "Longhorn" People &amp;amp;
        Groups.&amp;#160; We'd also love to hear your feedback when you get a chance to see it
        next week.&amp;#160; Jon will probably have more in-depth technical information and bug
        workarounds because his team worked on the People &amp;amp; Group controls.&amp;#160; But,
        I'm better looking... 
    &lt;/p&gt;
&lt;/body&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=51966" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/People+_2600_+Groups/default.aspx">People &amp; Groups</category><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/Longhorn/default.aspx">Longhorn</category></item><item><title>Am I Interesting?</title><link>http://blogs.msdn.com/darkcanuck/archive/2003/10/23/51965.aspx</link><pubDate>Fri, 24 Oct 2003 00:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:51965</guid><dc:creator>darkcanuck</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/darkcanuck/comments/51965.aspx</comments><wfw:commentRss>http://blogs.msdn.com/darkcanuck/commentrss.aspx?PostID=51965</wfw:commentRss><description>&lt;body xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;p&gt;
        Blogging seems to be the new fad so I thought I'd try it out.&amp;#160; It also seems
        to be a really good way of communicating with customers and hopefully getting some
        feedback on what we've been building in Windows "Longhorn", which you're about to
        see during the PDC next week.
    &lt;/p&gt;
    &lt;p&gt;
        Frankly, I'm not sure that I have enough interesting stuff to tell anyone though.&amp;#160;
        Actually, that's not true.&amp;#160; I really love my job and I work on some totally cool
        new stuff for Windows: People &amp;amp; Groups.&amp;#160; I'm just not sure how much I'm allowed
        to tell the world yet.&amp;#160; Eventually someone from LCA at Microsoft is probably
        going read this and get me fired.&amp;#160; Maybe I should post my resume next... 
    &lt;/p&gt;
&lt;/body&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=51965" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/People+_2600_+Groups/default.aspx">People &amp; Groups</category><category domain="http://blogs.msdn.com/darkcanuck/archive/tags/Longhorn/default.aspx">Longhorn</category></item></channel></rss>