Partilhar via


PresenceState Constructor (PresenceStateType, Int32, PresenceActivity)

Creates an instance of the PresenceState(MachineState/AggregateMachineState/AggregateState/UserState) class.

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

Syntax

'Declaration
Public Sub New ( _
    stateType As PresenceStateType, _
    availability As Integer, _
    activity As PresenceActivity _
)
'Usage
Dim stateType As PresenceStateType
Dim availability As Integer
Dim activity As PresenceActivity

Dim instance As New PresenceState(stateType, _
    availability, activity)
public PresenceState(
    PresenceStateType stateType,
    int availability,
    PresenceActivity activity
)

Parameters

Exceptions

Exception Condition
ArgumentException

Thrown when stateType is unknown, CalendarState or PhoneState.

Remarks

A presence state type of CalendarState or PresenceState cannot be created with this constructor. For PresenceState use the constructor which specifically takes phone uri as one of its parameters.

See Also

Reference

PresenceState Class

PresenceState Members

PresenceState Overload

Microsoft.Rtc.Collaboration.Presence Namespace