Partilhar via


ContactCard Constructor (PresenceCategoryWithMetaData)

Creates an instance of the ContactCard class.

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

Syntax

'Declaration
Public Sub New ( _
    category As PresenceCategoryWithMetaData _
)
'Usage
Dim category As PresenceCategoryWithMetaData

Dim instance As New ContactCard(category)
public ContactCard(
    PresenceCategoryWithMetaData category
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

Thrown when category or category.Category are null.

ArgumentException

If category.Name is anything other than the ContactCard.Name or the xml representing category.Category provided is invalid.

See Also

Reference

ContactCard Class

ContactCard Members

ContactCard Overload

Microsoft.Rtc.Collaboration.Presence Namespace