Share via


Serialization of Enhanced Presence Category Instances

With XML Schema Definition (XSD) files, you can generate presence data according to schema specifications.

To generate the data class from a schema:

  1. Create .NET Framework classes for the XML types defined in the XSD files. You can accomplish this by using Microsoft Xml Schema/DataTypes Support Utility (XSD.EXE). This tool is part of the .NET Framework SDK.

  2. Create presence data object by instantiating the resultant classes and assigning appropriate values.

  3. Serialize the presence data object to obtain its XML representation.

  4. Attach the XML blob to the SIP message body. The process used to attach an XML blob to a SIP message depends on the API used by your application.

In This Section

See Also

Reference

Lync-Defined Enhanced Presence Category Instance Elements

Concepts

General Features of Enhanced Presence

Getting Started with Enhanced Presence