次の方法で共有


ContainerResourceExtensions.GetContainerResources Method

Definition

Returns a collection of container resources in the specified distributed application model.

public static System.Collections.Generic.IEnumerable<Aspire.Hosting.ApplicationModel.IResource> GetContainerResources (this Aspire.Hosting.ApplicationModel.DistributedApplicationModel model);
static member GetContainerResources : Aspire.Hosting.ApplicationModel.DistributedApplicationModel -> seq<Aspire.Hosting.ApplicationModel.IResource>
<Extension()>
Public Iterator Function GetContainerResources (model As DistributedApplicationModel) As IEnumerable(Of IResource)

Parameters

model
DistributedApplicationModel

The distributed application model to search for container resources.

Returns

A collection of container resources in the specified distributed application model.

Applies to