Creates a new instance of the PresenceCategoryWithMetaData class with empty data.

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

Syntax

Visual Basic (Declaration)
Public 
Sub 
New ( _
	
name 
As 
String, _
	
instanceId 
As 
Long, _
	
containerId 
As 
Integer _
)
C#
public 
PresenceCategoryWithMetaData(
	
string 
name,
	
long 
instanceId,
	
int 
containerId
)
Visual C++
public:
PresenceCategoryWithMetaData(
	
String^ 
name, 
	
long long 
instanceId, 
	
int 
containerId
)
JavaScript

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

Parameters

name
Type: String
Name of the category.
instanceId
Type: Int64
Instance attribute of the category.
containerId
Type: Int32
ID of the container where category is published or being published.

Exceptions

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

See Also