Skip to content
Docs Try Aspire
Docs Try

IResourceCollection Methods

Interface Methods 1 member
Represents a collection of resources.
TryGetByName(string, IResource?) Section titled TryGetByName(string, IResource?) virtual bool
Attempts to find a resource by its name.
public interface IResourceCollection
{
public virtual bool TryGetByName(
string name,
out IResource? resource)
{
// ...
}
}
name string The name of the resource to find.
resource IResource? When this method returns, contains the resource with the specified name, if found; otherwise, null.
bool true if a resource with the specified name was found; otherwise, false.
The resource name comparison is case-insensitive.