MongoDBDatabaseResource Class
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.
A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource.
public class MongoDBDatabaseResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.ApplicationModel.MongoDBServerResource>
type MongoDBDatabaseResource = class
inherit Resource
interface IResourceWithParent<MongoDBServerResource>
interface IResourceWithParent
interface IResource
interface IResourceWithConnectionString
interface IManifestExpressionProvider
interface IValueProvider
interface IValueWithReferences
Public Class MongoDBDatabaseResource
Inherits Resource
Implements IResourceWithConnectionString, IResourceWithParent(Of MongoDBServerResource)
- Inheritance
- Implements
Mongo |
A resource that represents a MongoDB database. This is a child resource of a MongoDBServerResource. |
Annotations |
Gets the annotations associated with the resource. (Inherited from Resource) |
Connection |
Gets the connection string expression for the MongoDB database. |
Database |
Gets the database name. |
Name |
Gets the name of the resource. (Inherited from Resource) |
Parent |
Gets the parent MongoDB container resource. |
Get |
Gets the number of replicas for the specified resource. Defaults to |
Try |
Attempts to retrieve all annotations of the specified type from the given resource including from parents. |
Try |
Attempts to retrieve all annotations of the specified type from the given resource. |
Try |
Attempts to get the container image name from the given resource. |
Try |
Attempts to get the container mounts for the specified resource. |
Try |
Attempts to retrieve the endpoints for the given resource. |
Try |
Attempts to get the environment variables from the given resource. |
Try |
Attempts to get the last annotation of the specified type from the resource. |
Is |
Determines whether the specified resource is a container resource. |