Partilhar via


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

  • phoneUri
    Type: System.String
    The tel URI for the presence state.

Exceptions

Exception Condition
ArgumentNullException

Thrown when phoneUri is null.

See Also

Reference

PresenceState Class

PresenceState Members

PresenceState Overload

Microsoft.Rtc.Collaboration.Presence Namespace