Partilhar via


PresenceCategoryWithMetaData Constructor (String, Int64, Int32)

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

'Declaration
Public Sub New ( _
    name As String, _
    instanceId As Long, _
    containerId As Integer _
)
'Usage
Dim name As String
Dim instanceId As Long
Dim containerId As Integer

Dim instance As New PresenceCategoryWithMetaData(name, instanceId, _
    containerId)
public PresenceCategoryWithMetaData(
    string name,
    long instanceId,
    int containerId
)

Parameters

  • instanceId
    Type: System.Int64
    Instance attribute of the category.
  • containerId
    Type: System.Int32
    ID of the container where category is published or being published.

Exceptions

Exception Condition
ArgumentNullException

Thrown when name is null.

ArgumentException

Thrown when name is empty.

ArgumentOutOfRangeException

Thrown when containerId is not within zero and Int16.MaxValue.

ArgumentOutOfRangeException

Thrown when instanceId is not within zero and Int32.MaxValue.

See Also

Reference

PresenceCategoryWithMetaData Class

PresenceCategoryWithMetaData Members

PresenceCategoryWithMetaData Overload

Microsoft.Rtc.Collaboration.Presence Namespace