Creates a new instance of the CustomPresenceCategory class.

Namespace:  Microsoft.Rtc.Collaboration.Presence
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
categoryName 
As 
String, _
	
dataXml 
As 
String _
)
C#
public 
CustomPresenceCategory(
	
string 
categoryName,
	
string 
dataXml
)
Visual C++
public:
CustomPresenceCategory(
	
String^ 
categoryName, 
	
String^ 
dataXml
)
JavaScript

Microsoft.Rtc.Collaboration.Presence.CustomPresenceCategory
= 
function(
categoryName, 
dataXml);

Parameters

categoryName
Type: String
Name of the category.
dataXml
Type: String
XML string containing the category data XML.

Exceptions

Exception Condition
ArgumentNullException Thrown when dataXmlis null.

See Also