Skip to content
DocsTry Aspire
DocsTry

ConnectionStringResource Constructors

ClassConstructors1 member
Adds a connection string to the distributed application a resource with the specified expression.
Constructor(string, ReferenceExpression)Section titled Constructor(string, ReferenceExpression)
Adds a connection string to the distributed application a resource with the specified expression.
public sealed class ConnectionStringResource
{
public ConnectionStringResource(
string name,
ReferenceExpression connectionStringExpression)
{
// ...
}
}
namestringThe name of the resource.
connectionStringExpressionReferenceExpressionThe connection string expression.