Table of Contents

Class IPAddressOrRange

Namespace
Microsoft.WindowsAzure.Storage
Assembly
Microsoft.WindowsAzure.Storage.dll

Specifies either a single IP Address or a single range of IP Addresses (a minimum and a maximum, inclusive.)

public class IPAddressOrRange
Inheritance
IPAddressOrRange
Inherited Members

Constructors

IPAddressOrRange(string)

Initializes a new instance of the IPAddressOrRange class from a single IPAddress.

public IPAddressOrRange(string address)

Parameters

address string

The IP Address that the IPAddressOrRange object will represent.

IPAddressOrRange(string, string)

Initializes a new instance of the IPAddressOrRange class from two IPAddress objects, a minimum and a maximum.

public IPAddressOrRange(string minimum, string maximum)

Parameters

minimum string

The minimum IP Address that the IPAddressOrRange object will use as a range boundary, inclusive.

maximum string

The maximum IP Address that the IPAddressOrRange object will use as a range boundary, inclusive.

Properties

Address

The IP Address. Returns null if this object represents a range of IP addresses.

public string Address { get; }

Property Value

string

IsSingleAddress

True if this object represents a single IP Address, false if it represents a range.

public bool IsSingleAddress { get; }

Property Value

bool

MaximumAddress

The maximum IP Address for the range, inclusive. Returns null if this object represents a single IP address.

public string MaximumAddress { get; }

Property Value

string

MinimumAddress

The minimum IP Address for the range, inclusive. Returns null if this object represents a single IP address.

public string MinimumAddress { get; }

Property Value

string

Methods

ToString()

Provides a string representation of this IPAddressOrRange object.

public override string ToString()

Returns

string

The string representation of this IPAddressOrRange object.