Share via


SdpConnection.HostNameIPVersion Property

Gets or sets the address family to use if a hostname is specified rather than an IP address. The family found in the IPAddress instance is used, if the IPAddress property is not null. This value defaults to InterNetwork (IP4).

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

Syntax

'Declaration
Public Property HostNameIPVersion As AddressFamily
    Get
    Set
'Usage
Dim instance As SdpConnection
Dim value As AddressFamily

value = instance.HostNameIPVersion

instance.HostNameIPVersion = value
public AddressFamily HostNameIPVersion { get; set; }

Property Value

Type: System.Net.Sockets.AddressFamily

Exceptions

Exception Condition
ArgumentException

Thrown when it is neither AddressFamily.InterNetwork (IP4) nor InterNetworkV6 (IP6) are defined for an SDP.

See Also

Reference

SdpConnection Class

SdpConnection Members

Microsoft.Rtc.Signaling Namespace