次の方法で共有


ResourceExtensions.TryGetEnvironmentVariables Method

Definition

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.

Applies to