Sdílet prostřednictvím


MongoDBServerResource Constructors

Definition

Overloads

MongoDBServerResource(String)

A resource that represents a MongoDB container.

MongoDBServerResource(String, ParameterResource, ParameterResource)

Initialize a resource that represents a MongoDB container.

MongoDBServerResource(String)

Source:
MongoDBServerResource.cs
Source:
MongoDBServerResource.cs

A resource that represents a MongoDB container.

public MongoDBServerResource (string name);
new Aspire.Hosting.ApplicationModel.MongoDBServerResource : string -> Aspire.Hosting.ApplicationModel.MongoDBServerResource
Public Sub New (name As String)

Parameters

name
String

The name of the resource.

Applies to

MongoDBServerResource(String, ParameterResource, ParameterResource)

Source:
MongoDBServerResource.cs

Initialize a resource that represents a MongoDB container.

public MongoDBServerResource (string name, Aspire.Hosting.ApplicationModel.ParameterResource? userNameParameter, Aspire.Hosting.ApplicationModel.ParameterResource? passwordParameter);
new Aspire.Hosting.ApplicationModel.MongoDBServerResource : string * Aspire.Hosting.ApplicationModel.ParameterResource * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ApplicationModel.MongoDBServerResource
Public Sub New (name As String, userNameParameter As ParameterResource, passwordParameter As ParameterResource)

Parameters

name
String

The name of the resource.

userNameParameter
ParameterResource

A parameter that contains the MongoDb server user name, or null to use a default value.

passwordParameter
ParameterResource

A parameter that contains the MongoDb server password.

Applies to