PresenceInfo class

Office 2013 and later

Defines the PresenceInfo Class.This class is only available in Office2013. When the object is serialized out as xml, its qualified name is w15:presenceInfo.

Namespace:  DocumentFormat.OpenXml.Office2013.Word
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class PresenceInfo : OpenXmlLeafElement

2.5.43 CT_PresenceInfo

Target namespace:

Referenced by: CT_Person

The CT_PresenceInfo complex type<43> specifies uniquely identifying contact information for a person.


providerId: An xsd:string attribute ([XMLSCHEMA2] section 3.2.1) that specifies the identity provider that produced the subsequent userId attribute.

userId: An xsd:string attribute ([XMLSCHEMA2] section 3.2.1) that specifies a unique user id for a person.

This table lists the allowed values of the providerId attribute and the corresponding meanings of the userId attribute.

Identity Provider


userId value

No Provider


Author’s name

Active Directory


Active Directory Security Identifier (as specified in [MS-DTYP] section 2.4.2)

Windows Live ID

"Windows Live"

A 64-bit signed decimal that uniquely identifies a user on Windows Live.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_PresenceInfo">

<xsd:attribute name="providerId" type="xsd:string" use="required"/>

<xsd:attribute name="userId" type="xsd:string" use="required"/>


See section 5.2 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.