AIProjectConnectionsOperations.GetConnectionsAsync 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 |
|---|---|
| GetConnectionsAsync(Nullable<ConnectionType>, Nullable<Boolean>, CancellationToken) |
Returns the connections available in the current project, optionally filtered by type or default status. |
| GetConnectionsAsync(String, Nullable<Boolean>, RequestOptions) |
[Protocol Method] Returns the connections available in the current project, optionally filtered by type or default status.
|
GetConnectionsAsync(Nullable<ConnectionType>, Nullable<Boolean>, CancellationToken)
Returns the connections available in the current project, optionally filtered by type or default status.
public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection> GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default, bool? defaultConnection = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionsAsync : Nullable<Azure.AI.Projects.ConnectionType> * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection>
override this.GetConnectionsAsync : Nullable<Azure.AI.Projects.ConnectionType> * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection>
Public Overridable Function GetConnectionsAsync (Optional connectionType As Nullable(Of ConnectionType) = Nothing, Optional defaultConnection As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of AIProjectConnection)
Parameters
- connectionType
- Nullable<ConnectionType>
Lists connections of this specific type.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
Service returned a non-success status code.
Applies to
GetConnectionsAsync(String, Nullable<Boolean>, RequestOptions)
[Protocol Method] Returns the connections available in the current project, optionally filtered by type or default status.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options);
abstract member GetConnectionsAsync : string * Nullable<bool> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
override this.GetConnectionsAsync : string * Nullable<bool> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
Public Overridable Function GetConnectionsAsync (connectionType As String, defaultConnection As Nullable(Of Boolean), options As RequestOptions) As AsyncCollectionResult
Parameters
- connectionType
- String
Lists connections of this specific type.
- options
- RequestOptions
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
Service returned a non-success status code.