C# IPAddress MapToIPv6

Description

IPAddress MapToIPv6 Maps the IPAddress object to an IPv6 address.

Syntax

IPAddress.MapToIPv6 has the following syntax.


public IPAddress MapToIPv6()

Returns

IPAddress.MapToIPv6 method returns Returns IPAddress. An IPv6 address.

Example


using System;/*from  ww w.j a  v  a  2s  .co  m*/
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {
        IPAddress address = new IPAddress(0x2112188f);
        Console.WriteLine(address.MapToIPv6());

   }
}




















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient