ShareDirectoryClient.GetFilesAndDirectories 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
GetFilesAndDirectories(ShareDirectoryGetFilesAndDirectoriesOptions, CancellationToken) |
The GetFilesAndDirectoriesAsync(ShareDirectoryGetFilesAndDirectoriesOptions, CancellationToken) operation returns an async sequence of files and subdirectories in this directory. Enumerating the files and directories may make multiple requests to the service while fetching all the values. For more information, see List Directories and Files. |
GetFilesAndDirectories(String, CancellationToken) |
The GetFilesAndDirectories(String, CancellationToken) operation returns an async sequence of files and subdirectories in this directory. Enumerating the files and directories may make multiple requests to the service while fetching all the values. For more information, see List Directories and Files. |
GetFilesAndDirectories(ShareDirectoryGetFilesAndDirectoriesOptions, CancellationToken)
- Source:
- ShareDirectoryClient.cs
- Source:
- ShareDirectoryClient.cs
The GetFilesAndDirectoriesAsync(ShareDirectoryGetFilesAndDirectoriesOptions, CancellationToken) operation returns an async sequence of files and subdirectories in this directory. Enumerating the files and directories may make multiple requests to the service while fetching all the values.
For more information, see List Directories and Files.
public virtual Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem> GetFilesAndDirectories (Azure.Storage.Files.Shares.Models.ShareDirectoryGetFilesAndDirectoriesOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFilesAndDirectories : Azure.Storage.Files.Shares.Models.ShareDirectoryGetFilesAndDirectoriesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem>
override this.GetFilesAndDirectories : Azure.Storage.Files.Shares.Models.ShareDirectoryGetFilesAndDirectoriesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem>
Public Overridable Function GetFilesAndDirectories (Optional options As ShareDirectoryGetFilesAndDirectoriesOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ShareFileItem)
Parameters
Optional parameters. ShareDirectoryGetFilesAndDirectoriesOptions.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
An IEnumerable<T> of Response<T> describing the items in the directory.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
GetFilesAndDirectories(String, CancellationToken)
- Source:
- ShareDirectoryClient.cs
- Source:
- ShareDirectoryClient.cs
The GetFilesAndDirectories(String, CancellationToken) operation returns an async sequence of files and subdirectories in this directory. Enumerating the files and directories may make multiple requests to the service while fetching all the values.
For more information, see List Directories and Files.
public virtual Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem> GetFilesAndDirectories (string prefix, System.Threading.CancellationToken cancellationToken = default);
abstract member GetFilesAndDirectories : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem>
override this.GetFilesAndDirectories : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Storage.Files.Shares.Models.ShareFileItem>
Public Overridable Function GetFilesAndDirectories (prefix As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ShareFileItem)
Parameters
- prefix
- String
Optional string that filters the results to return only files and directories whose name begins with the specified prefix.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be cancelled.
Returns
An IEnumerable<T> of Response<T> describing the items in the directory.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
Azure SDK for .NET