Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you subscribe to the targeted user's presence updates, you can capture this information using the 'contactCard' presence protocol type...</p> <pre><code>// Event handler to process remote target's presence notifications void RemotePresence_PresenceNotificationReceived(object sender, RemotePresenceNotificationEventArgs e) { // Notifications contain all the notifications for one user. foreach (RemotePresentityNotificationData notification in e.Notifications) { // Each user will send a list of updated categories. We will choose the ones we're interested in and process them. foreach (PresenceCategoryWithMetaData category in notification.Categories) { if (category.Name.Equals("contactCard")) { //get the xml data string rawXml = category.CreateInnerDataXml(); if (rawXml == null || rawXml.Trim().Length == 0) { break; } StringReader reader = new StringReader(rawXml); XmlDocument metadataDocument = new XmlDocument(); metadataDocument.Load(reader); // Traverse the xml to get the phone numbers } } } } </code></pre> <p>The above code in a bit more detail and information on how to subscribe to remote user(s)' presence updates can be found here...</p> <p><a href="http://blogs.claritycon.com/blogs/michael_greenlee/archive/2009/03/10/subscribe-to-presence-in-ucma-v2-0.aspx" rel="nofollow noreferrer">http://blogs.claritycon.com/blogs/michael_greenlee/archive/2009/03/10/subscribe-to-presence-in-ucma-v2-0.aspx</a> (Dead)</p> <p><a href="http://blog.greenl.ee/2009/03/11/subscribing-to-presence-in-ucma-2-0/" rel="nofollow noreferrer">http://blog.greenl.ee/2009/03/11/subscribing-to-presence-in-ucma-2-0/</a> (Alive)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload