Skip to content
DocsTry Aspire
DocsTry

HostUrl Methods

RecordMethods8 members
Represents a URL on the host machine. When referenced in a container resource, localhost will be replaced with the configured container host name.
public record HostUrl
{
public virtual HostUrl <Clone>$()
{
// ...
}
}
public record HostUrl
{
public void Deconstruct(
out string Url)
{
// ...
}
}
Urlstring
Equals(object?)Section titled Equals(object?)overridebool
Determines whether the specified object is equal to the current object.
public record HostUrl
{
public override bool Equals(
object? obj)
{
// ...
}
}
objobject?The object to compare with the current object.
booltrue if the specified object is equal to the current object; otherwise, false.
Equals(HostUrl?)Section titled Equals(HostUrl?)virtualbool
Indicates whether the current object is equal to another object of the same type.
public record HostUrl
{
public virtual bool Equals(
HostUrl? other)
{
// ...
}
}
otherHostUrl?An object to compare with this object.
booltrue if the current object is equal to the other parameter; otherwise, false.
GetHashCodeSection titled GetHashCodeoverrideint
Serves as the default hash function.
public record HostUrl
{
public override int GetHashCode()
{
// ...
}
}
intA hash code for the current object.
op_Equality(HostUrl?, HostUrl?)Section titled op_Equality(HostUrl?, HostUrl?)staticbool
public record HostUrl
{
public static bool operator ==(
HostUrl? left,
HostUrl? right)
{
// ...
}
}
op_Inequality(HostUrl?, HostUrl?)Section titled op_Inequality(HostUrl?, HostUrl?)staticbool
public record HostUrl
{
public static bool operator !=(
HostUrl? left,
HostUrl? right)
{
// ...
}
}
ToStringSection titled ToStringoverridestring
Returns a string that represents the current object.
public record HostUrl
{
public override string ToString()
{
// ...
}
}
stringA string that represents the current object.