EntityConnection.OpenAsync Method

 

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodOpenAsync()

(Inherited from DbConnection.)

System_CAPS_pubmethodOpenAsync(CancellationToken)

Asynchronously establishes a connection to the data store by calling the Open method on the underlying data provider(Overrides DbConnection.OpenAsync(CancellationToken).)


EntityConnection.OpenAsync Method (CancellationToken)

Asynchronously establishes a connection to the data store by calling the Open method on the underlying data provider

[DebuggerStepThroughAttribute]
public override Task OpenAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.Threading.CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Return Value

Type: System.Threading.Tasks.Task

A task that represents the asynchronous operation.