ResourceExtensions.TryGetUrls Method
Definition
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.
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.
The URLs for the given resource, if found.
Returns
True if the URLs were found, false otherwise.