Creates a new instance of the PresenceCategoryWithMetaData class.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
instanceId 
As 
Long, _
	
containerId 
As 
Integer, _
	
item 
As 

PresenceCategory _
)
C#
public 
PresenceCategoryWithMetaData(
	
long 
instanceId,
	
int 
containerId,
	

PresenceCategory 
item
)
Visual C++
public:
PresenceCategoryWithMetaData(
	
long long 
instanceId, 
	
int 
containerId, 
	

PresenceCategory^ 
item
)
JavaScript

Microsoft.Rtc.Collaboration.Presence.PresenceCategoryWithMetaData
= 
function(
instanceId, 
containerId, 
item);

Parameters

instanceId
Type: Int64
Instance attribute of the category.
containerId
Type: Int32
ID of the container, where category is published or being published.
item
Type: Microsoft.Rtc.Collaboration.Presence . . :: . PresenceCategory
Data to be used as inner XML for the category.

Exceptions

Exception Condition
ArgumentNullException Thrown when itemis null.
ArgumentOutOfRangeException Thrown when containerIdis not within zero and Int16.MaxValue.
ArgumentOutOfRangeException Thrown when instanceIdis not within zero and Int32.MaxValue.

See Also