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
stringThe 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
stringThe minimum IP Address that the IPAddressOrRange object will use as a range boundary, inclusive.
maximum
stringThe 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
IsSingleAddress
True if this object represents a single IP Address, false if it represents a range.
public bool IsSingleAddress { get; }
Property Value
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
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
Methods
ToString()
Provides a string representation of this IPAddressOrRange object.
public override string ToString()
Returns
- string
The string representation of this IPAddressOrRange object.