HostNameIPVersion Property
Gets or sets the address family to use when a host name is specified rather than an IP address.
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. |
Remarks
The family found in the [IPAddress] instance is used, if the [IPAddress] property is not nullNothingnullptrunita null reference (Nothing in Visual Basic). This value defaults to InterNetwork (IP4).