PresenceState Constructor (Int32, PresenceActivity, PhoneCallType, String)
Creates an instance of the phone state category.
Namespace: Microsoft.Rtc.Collaboration.Presence
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub New ( _
availability As Integer, _
activity As PresenceActivity, _
phoneCallType As PhoneCallType, _
phoneUri As String _
)
'Usage
Dim availability As Integer
Dim activity As PresenceActivity
Dim phoneCallType As PhoneCallType
Dim phoneUri As String
Dim instance As New PresenceState(availability, _
activity, phoneCallType, phoneUri)
public PresenceState(
int availability,
PresenceActivity activity,
PhoneCallType phoneCallType,
string phoneUri
)
Parameters
- availability
Type: System.Int32
Availability value.
- activity
Type: Microsoft.Rtc.Collaboration.Presence.PresenceActivity
Activity token for this availability.
- phoneCallType
Type: Microsoft.Rtc.Collaboration.Presence.PhoneCallType
Whether Phone state is for RCC, VoIP or PSTN calls.
- phoneUri
Type: System.String
The tel URI for the presence state.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when phoneUri is null. |