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

Visual Basic (Declaration)
Public 
Property 
HostNameIPVersion 
As 
AddressFamily
C#
public 
AddressFamily 
HostNameIPVersion { 
get; 
set; }
Visual C++
public:
property 
AddressFamily 
HostNameIPVersion {
	
AddressFamily 
get ();
	
void 
set (
AddressFamily 
value);
}
JavaScript
function get_
hostNameIPVersion();
function set_
hostNameIPVersion(
value);

Exceptions

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

See Also