C# IPAddress MapToIPv4

Description

IPAddress MapToIPv4 Maps the IPAddress object to an IPv4 address.

Syntax

IPAddress.MapToIPv4 has the following syntax.


public IPAddress MapToIPv4()

Returns

IPAddress.MapToIPv4 method returns Returns IPAddress. An IPv4 address.

Example


using System;/*from   w w  w  .j  a va 2s  . c om*/
using System.Net;
using System.Net.Sockets;

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

   }
}




















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient