Share via


IResourceWithConnectionString.GetConnectionProperties Method

Definition

Retrieves a collection of connection property name and value pairs associated with the current context.

public virtual System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Aspire.Hosting.ApplicationModel.ReferenceExpression>> GetConnectionProperties();
abstract member GetConnectionProperties : unit -> seq<System.Collections.Generic.KeyValuePair<string, Aspire.Hosting.ApplicationModel.ReferenceExpression>>
override this.GetConnectionProperties : unit -> seq<System.Collections.Generic.KeyValuePair<string, Aspire.Hosting.ApplicationModel.ReferenceExpression>>
Public Overridable Function GetConnectionProperties () As IEnumerable(Of KeyValuePair(Of String, ReferenceExpression))

Returns

An enumerable collection of key/value pairs, where each key is the name of a connection property and each value is its corresponding ReferenceExpression. The collection is empty if there are no connection properties.

Applies to