IComputeEnvironmentResource.GetHostAddressExpression 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.
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.