Share via


IComputeEnvironmentResource.GetHostAddressExpression Method

Definition

Gets a ReferenceExpression representing the host address or host name for the specified EndpointReference.

public virtual Aspire.Hosting.ApplicationModel.ReferenceExpression GetHostAddressExpression(Aspire.Hosting.ApplicationModel.EndpointReference endpointReference);
abstract member GetHostAddressExpression : Aspire.Hosting.ApplicationModel.EndpointReference -> Aspire.Hosting.ApplicationModel.ReferenceExpression
override this.GetHostAddressExpression : Aspire.Hosting.ApplicationModel.EndpointReference -> Aspire.Hosting.ApplicationModel.ReferenceExpression
Public Overridable Function GetHostAddressExpression (endpointReference As EndpointReference) As ReferenceExpression

Parameters

endpointReference
EndpointReference

The endpoint reference for which to retrieve the host address or host name.

Returns

A ReferenceExpression representing the host address or host name (not a full URL).

Remarks

The returned value typically contains only the host name or address, without scheme, port, or path information.

Applies to