SearchIndexClient.GetKnowledgeSourceFilesAsync 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
| Name | Description |
|---|---|
| GetKnowledgeSourceFilesAsync(String, RequestContext) |
[Protocol Method] Lists all files in a File knowledge source.
|
| GetKnowledgeSourceFilesAsync(String, CancellationToken) |
Lists all files in a File knowledge source. |
GetKnowledgeSourceFilesAsync(String, RequestContext)
- Source:
- SearchIndexClient.cs
[Protocol Method] Lists all files in a File knowledge source.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.AsyncPageable<BinaryData> GetKnowledgeSourceFilesAsync(string sourceName, Azure.RequestContext context);
abstract member GetKnowledgeSourceFilesAsync : string * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetKnowledgeSourceFilesAsync : string * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetKnowledgeSourceFilesAsync (sourceName As String, context As RequestContext) As AsyncPageable(Of BinaryData)
Parameters
- sourceName
- String
The name of the knowledge source.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
sourceName is null.
sourceName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetKnowledgeSourceFilesAsync(String, CancellationToken)
- Source:
- SearchIndexClient.cs
Lists all files in a File knowledge source.
public virtual Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSourceFile> GetKnowledgeSourceFilesAsync(string sourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetKnowledgeSourceFilesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSourceFile>
override this.GetKnowledgeSourceFilesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Search.Documents.Indexes.Models.KnowledgeSourceFile>
Public Overridable Function GetKnowledgeSourceFilesAsync (sourceName As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of KnowledgeSourceFile)
Parameters
- sourceName
- String
The name of the knowledge source.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
sourceName is null.
sourceName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.