Skip to content
Docs Try Aspire

HostUrl Methods

Record Methods 8 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)
{
// ...
}
}
Url string
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record HostUrl
{
public override bool Equals(
object? obj)
{
// ...
}
}
obj object? The object to compare with the current object.
bool true if the specified object is equal to the current object; otherwise, false.
Equals(HostUrl?) Section titled Equals(HostUrl?) virtual bool
Indicates whether the current object is equal to another object of the same type.
public record HostUrl
{
public virtual bool Equals(
HostUrl? other)
{
// ...
}
}
other HostUrl? An object to compare with this object.
bool true if the current object is equal to the other parameter; otherwise, false.
GetHashCode Section titled GetHashCode override int
Serves as the default hash function.
public record HostUrl
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(HostUrl?, HostUrl?) Section titled op_Equality(HostUrl?, HostUrl?) static bool
public record HostUrl
{
public static bool operator ==(
HostUrl? left,
HostUrl? right)
{
// ...
}
}
left HostUrl?
right HostUrl?
op_Inequality(HostUrl?, HostUrl?) Section titled op_Inequality(HostUrl?, HostUrl?) static bool
public record HostUrl
{
public static bool operator !=(
HostUrl? left,
HostUrl? right)
{
// ...
}
}
left HostUrl?
right HostUrl?
ToString Section titled ToString override string
Returns a string that represents the current object.
public record HostUrl
{
public override string ToString()
{
// ...
}
}
string A string that represents the current object.