C# IPAddress IsIPv6SiteLocal

Description

IPAddress IsIPv6SiteLocal Gets whether the address is an IPv6 site local address.

Syntax

IPAddress.IsIPv6SiteLocal has the following syntax.


public bool IsIPv6SiteLocal { get; }

Example


// w  w  w  .  ja  v  a  2  s.c  om
using System;
using System.Net;
using System.Net.Sockets;

public class Example
{
   public static void Main()
   {
      IPAddress address = IPAddress.Parse("127.0.0.1");
      Console.WriteLine(address.IsIPv6SiteLocal);

   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Net »




Cookie
Dns
IPAddress
IPEndPoint
IPHostEntry
WebClient