Struct Range
Summary description for Range.
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: ImageVault.Common.Lib.Web
Assembly: ImageVault.Common.dll
Syntax
public struct Range
Remarks
2011-08-11 dan: Created
Constructors
Range(Int64, Int64)
Initializes a new instance of the Range class.
Declaration
public Range(long offset, long length)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offset | |
System.Int64 | length |
Fields
All
Gets the All of the Range
Declaration
public static readonly Range All
Field Value
Type | Description |
---|---|
Range |
Length
Gets the Length of the Range
Declaration
public readonly long Length
Field Value
Type | Description |
---|---|
System.Int64 |
Offset
Gets the Offset of the Range
Declaration
public readonly long Offset
Field Value
Type | Description |
---|---|
System.Int64 |
Methods
Equals(Range)
Declaration
public bool Equals(Range other)
Parameters
Type | Name | Description |
---|---|---|
Range | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Parse(String)
Parses the supplied range header
Declaration
public static Range Parse(string range)
Parameters
Type | Name | Description |
---|---|---|
System.String | range | The range to parse |
Returns
Type | Description |
---|---|
Range | The parsed range |
Remarks
don't support multiple range requests. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Exceptions
Type | Condition |
---|---|
System.ApplicationException | If only supports byte ranges or if cannot parse byte range . |
Operators
Equality(Range, Range)
Declaration
public static bool operator ==(Range left, Range right)
Parameters
Type | Name | Description |
---|---|---|
Range | left | |
Range | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Range, Range)
Declaration
public static bool operator !=(Range left, Range right)
Parameters
Type | Name | Description |
---|---|---|
Range | left | |
Range | right |
Returns
Type | Description |
---|---|
System.Boolean |