ConnectionPropertiesExtensions.CombineProperties 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.
Combines two sets of connection properties, with properties from the additional set overriding those in the source set in case of key conflicts.
public static System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Aspire.Hosting.ApplicationModel.ReferenceExpression>> CombineProperties(this Aspire.Hosting.ApplicationModel.IResourceWithConnectionString source, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Aspire.Hosting.ApplicationModel.ReferenceExpression>> additional);
static member CombineProperties : Aspire.Hosting.ApplicationModel.IResourceWithConnectionString * seq<System.Collections.Generic.KeyValuePair<string, Aspire.Hosting.ApplicationModel.ReferenceExpression>> -> seq<System.Collections.Generic.KeyValuePair<string, Aspire.Hosting.ApplicationModel.ReferenceExpression>>
<Extension()>
Public Function CombineProperties (source As IResourceWithConnectionString, additional As IEnumerable(Of KeyValuePair(Of String, ReferenceExpression))) As IEnumerable(Of KeyValuePair(Of String, ReferenceExpression))
Parameters
The resource that exposes the base connection properties.
- additional
- IEnumerable<KeyValuePair<String,ReferenceExpression>>
The additional connection properties to merge into the values supplied by source.
Returns
A sequence that contains the combined set of connection properties with duplicate keys resolved in favor of additional.