Share via


MongoDBServerResource.UriExpression Property

Definition

Gets the connection URI expression for the MongoDB server.

public Aspire.Hosting.ApplicationModel.ReferenceExpression UriExpression { get; }
member this.UriExpression : Aspire.Hosting.ApplicationModel.ReferenceExpression
Public ReadOnly Property UriExpression As ReferenceExpression

Property Value

Remarks

Format: mongodb://[user:password@]{host}:{port}[?authSource=admin&authMechanism=SCRAM-SHA-256]. The credential and query segments are included only when a password is configured.

Applies to