Share via


ResourceExtensions.TryGetUrls Method

Definition

Attempts to retrieve the URLs for the given resource.

public static bool TryGetUrls(this Aspire.Hosting.ApplicationModel.IResource resource, out System.Collections.Generic.IEnumerable<Aspire.Hosting.ApplicationModel.ResourceUrlAnnotation>? urls);
static member TryGetUrls : Aspire.Hosting.ApplicationModel.IResource * seq -> bool
<Extension()>
Public Function TryGetUrls (resource As IResource, ByRef urls As IEnumerable(Of ResourceUrlAnnotation)) As Boolean

Parameters

resource
IResource

The resource to retrieve the URLs for.

urls
IEnumerable<ResourceUrlAnnotation>

The URLs for the given resource, if found.

Returns

True if the URLs were found, false otherwise.

Applies to