CloudFile.ListRangesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ListRangesAsync() |
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes. |
ListRangesAsync(CancellationToken) |
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes. |
ListRangesAsync(Nullable<Int64>, Nullable<Int64>, AccessCondition, FileRequestOptions, OperationContext) |
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes. |
ListRangesAsync(Nullable<Int64>, Nullable<Int64>, AccessCondition, FileRequestOptions, OperationContext, CancellationToken) |
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes. |
ListRangesAsync()
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.File.FileRange>> ListRangesAsync ();
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ListRangesAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
override this.ListRangesAsync : unit -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
Public Overridable Function ListRangesAsync () As Task(Of IEnumerable(Of FileRange))
Returns
A Task<TResult> object that represents the current operation.
- Attributes
Applies to
ListRangesAsync(CancellationToken)
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.File.FileRange>> ListRangesAsync (System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ListRangesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
override this.ListRangesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
Public Overridable Function ListRangesAsync (cancellationToken As CancellationToken) As Task(Of IEnumerable(Of FileRange))
Parameters
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
A Task<TResult> object that represents the current operation.
- Attributes
Applies to
ListRangesAsync(Nullable<Int64>, Nullable<Int64>, AccessCondition, FileRequestOptions, OperationContext)
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.File.FileRange>> ListRangesAsync (long? offset, long? length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ListRangesAsync : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
override this.ListRangesAsync : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
Public Overridable Function ListRangesAsync (offset As Nullable(Of Long), length As Nullable(Of Long), accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext) As Task(Of IEnumerable(Of FileRange))
Parameters
The starting offset of the data range over which to list file ranges, in bytes.
- accessCondition
- AccessCondition
An AccessCondition object that represents the access conditions for the file. If null
, no condition is used.
- options
- FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
Returns
A Task<TResult> object that represents the current operation.
- Attributes
Applies to
ListRangesAsync(Nullable<Int64>, Nullable<Int64>, AccessCondition, FileRequestOptions, OperationContext, CancellationToken)
Returns a task that performs an asynchronous operation to return a collection of valid ranges and their starting and ending bytes.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Storage.File.FileRange>> ListRangesAsync (long? offset, long? length, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.File.FileRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member ListRangesAsync : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
override this.ListRangesAsync : Nullable<int64> * Nullable<int64> * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.File.FileRequestOptions * Microsoft.Azure.Storage.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Storage.File.FileRange>>
Public Overridable Function ListRangesAsync (offset As Nullable(Of Long), length As Nullable(Of Long), accessCondition As AccessCondition, options As FileRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of FileRange))
Parameters
The starting offset of the data range over which to list file ranges, in bytes.
- accessCondition
- AccessCondition
An AccessCondition object that represents the access conditions for the file. If null
, no condition is used.
- options
- FileRequestOptions
A FileRequestOptions object that specifies additional options for the request.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
A Task<TResult> object that represents the current operation.
- Attributes
Applies to
Azure SDK for .NET