Skip to content
DocsTry Aspire
DocsTry

MongoDBDatabaseResource Constructors

ClassConstructors1 member
A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource.
Constructor(string, string, MongoDBServerResource)Section titled Constructor(string, string, MongoDBServerResource)
A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource.
public class MongoDBDatabaseResource
{
public MongoDBDatabaseResource(
string name,
string databaseName,
MongoDBServerResource parent)
{
// ...
}
}
namestringThe name of the resource.
databaseNamestringThe database name.
parentMongoDBServerResourceThe MongoDB server resource associated with this database.