IResourceWithConnectionString.GetConnectionStringAsync 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.
Gets the connection string associated with the resource.
public virtual System.Threading.Tasks.ValueTask<string?> GetConnectionStringAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionStringAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
override this.GetConnectionStringAsync : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
Public Overridable Function GetConnectionStringAsync (Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of String)
Parameters
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
The connection string associated with the resource, when one is available.