AIProjectConnectionsOperations.GetDefaultConnectionAsync 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.
Get the default connection.
public virtual System.Threading.Tasks.Task<Azure.AI.Projects.AIProjectConnection> GetDefaultConnectionAsync(Azure.AI.Projects.ConnectionType? connectionType = default, bool includeCredentials = false);
abstract member GetDefaultConnectionAsync : Nullable<Azure.AI.Projects.ConnectionType> * bool -> System.Threading.Tasks.Task<Azure.AI.Projects.AIProjectConnection>
override this.GetDefaultConnectionAsync : Nullable<Azure.AI.Projects.ConnectionType> * bool -> System.Threading.Tasks.Task<Azure.AI.Projects.AIProjectConnection>
Public Overridable Function GetDefaultConnectionAsync (Optional connectionType As Nullable(Of ConnectionType) = Nothing, Optional includeCredentials As Boolean = false) As Task(Of AIProjectConnection)
Parameters
- connectionType
- Nullable<ConnectionType>
List connections of this specific type.
- includeCredentials
- Boolean
Whether to include credentials in the response. Default is false.
Returns
A AIProjectConnection object.
Exceptions
Thrown when the request fails.