Show / Hide Table of Contents

Struct SasIPRange

Represents a range of allowed IP addresses for constructing a Shared Access Signature.

Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Storage.Common.dll
Syntax
[System.Runtime.CompilerServices.IsReadOnly]
public struct SasIPRange : IEquatable<Azure.Storage.Sas.SasIPRange>

Constructors

SasIPRange(IPAddress, IPAddress)

Creates a new SasIPRange.

Declaration
public SasIPRange (System.Net.IPAddress start, System.Net.IPAddress end = null);
Parameters
System.Net.IPAddress start

The range's start System.Net.IPAddress.

System.Net.IPAddress end

The range's optional end System.Net.IPAddress.

Properties

End

Gets the optional end of the IP range. Not specified if equal to null or System.Net.IPAddress.None.

Declaration
public System.Net.IPAddress End { get; }
Property Value
System.Net.IPAddress

Start

Gets the start of the IP range. Not specified if equal to null or System.Net.IPAddress.None.

Declaration
public System.Net.IPAddress Start { get; }
Property Value
System.Net.IPAddress

Methods

Equals(SasIPRange)

Check if two SasIPRange instances are equal.

Declaration
public bool Equals (Azure.Storage.Sas.SasIPRange other);
Parameters
SasIPRange other

The instance to compare to.

Returns
System.Boolean

True if they're equal, false otherwise.

Equals(Object)

Check if two SasIPRange instances are equal.

Declaration
[System.ComponentModel.EditorBrowsable]
public override bool Equals (object obj);
Parameters
System.Object obj

The instance to compare to.

Returns
System.Boolean

True if they're equal, false otherwise.

GetHashCode()

Get a hash code for the SasIPRange.

Declaration
[System.ComponentModel.EditorBrowsable]
public override int GetHashCode ();
Returns
System.Int32

Hash code for the SasIPRange.

Parse(String)

Parse an IP range string into a new SasIPRange.

Declaration
public static Azure.Storage.Sas.SasIPRange Parse (string s);
Parameters
System.String s

IP range string to parse.

Returns
SasIPRange

The parsed SasIPRange.

ToString()

Creates a string representation of an SasIPRange.

Declaration
public override string ToString ();
Returns
System.String

A string representation of an SasIPRange.

Operators

Equality(SasIPRange, SasIPRange)

Check if two SasIPRange instances are equal.

Declaration
public static bool operator == (Azure.Storage.Sas.SasIPRange left, Azure.Storage.Sas.SasIPRange right);
Parameters
SasIPRange left

The first instance to compare.

SasIPRange right

The second instance to compare.

Returns
System.Boolean

True if they're equal, false otherwise.

Inequality(SasIPRange, SasIPRange)

Check if two SasIPRange instances are not equal.

Declaration
public static bool operator != (Azure.Storage.Sas.SasIPRange left, Azure.Storage.Sas.SasIPRange right);
Parameters
SasIPRange left

The first instance to compare.

SasIPRange right

The second instance to compare.

Returns
System.Boolean

True if they're not equal, false otherwise.

Back to top Azure SDK for .NET