Domain Detective

API Reference

Struct

IpCidrRange

Namespace DomainDetective
Assembly DomainDetective
Base ValueType
Modifiers sealed

Represents an IP network in CIDR notation.

Inheritance

  • ValueType
  • IpCidrRange

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public IpCidrRange(IPAddress network, Int32 prefixLength) #

Initializes a new instance of the IpCidrRange class.

Parameters

network System.Net.IPAddress requiredposition: 0
prefixLength System.Int32 requiredposition: 1

Methods

public Boolean Contains(IPAddress address) #
Returns: Boolean

Checks if the range contains the specified address.

Parameters

address System.Net.IPAddress requiredposition: 0
public static Boolean TryParse(String text, out IpCidrRange range) #
Returns: Boolean

Parses a CIDR string.

Parameters

text System.String requiredposition: 0
range DomainDetective.IpCidrRange@ requiredposition: 1

Properties

public IPAddress Network { get; } #

Base network address.

public Int32 PrefixLength { get; } #

Prefix length.

{{ include "footer" }}