ResourceExtensions.TryGetEnvironmentVariables 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 get the environment variables from the given resource.
public static bool TryGetEnvironmentVariables (this Aspire.Hosting.ApplicationModel.IResource resource, out System.Collections.Generic.IEnumerable<Aspire.Hosting.ApplicationModel.EnvironmentCallbackAnnotation>? environmentVariables);
static member TryGetEnvironmentVariables : Aspire.Hosting.ApplicationModel.IResource * seq -> bool
<Extension()>
Public Function TryGetEnvironmentVariables (resource As IResource, ByRef environmentVariables As IEnumerable(Of EnvironmentCallbackAnnotation)) As Boolean
Parameters
- resource
- IResource
The resource to get the environment variables from.
- environmentVariables
- IEnumerable<EnvironmentCallbackAnnotation>
The environment variables retrieved from the resource, if any.
Returns
True if the environment variables were successfully retrieved, false otherwise.