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