Skip to content
DocsTry Aspire
DocsTry

VolumeSnapshot Methods

RecordMethods8 members
A snapshot of a volume, mounted to a container.
public record VolumeSnapshot
{
public VolumeSnapshot <Clone>$()
{
// ...
}
}
Deconstruct(string?, string, string, bool)Section titled Deconstruct(string?, string, string, bool)
public record VolumeSnapshot
{
public void Deconstruct(
out string? Source,
out string Target,
out string MountType,
out bool IsReadOnly)
{
// ...
}
}
Sourcestring?
Targetstring
MountTypestring
IsReadOnlybool
Equals(object?)Section titled Equals(object?)overridebool
Determines whether the specified object is equal to the current object.
public record VolumeSnapshot
{
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(VolumeSnapshot?)Section titled Equals(VolumeSnapshot?)bool
Indicates whether the current object is equal to another object of the same type.
public record VolumeSnapshot
{
public bool Equals(
VolumeSnapshot? other)
{
// ...
}
}
otherVolumeSnapshot?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 VolumeSnapshot
{
public override int GetHashCode()
{
// ...
}
}
intA hash code for the current object.
op_Equality(VolumeSnapshot?, VolumeSnapshot?)Section titled op_Equality(VolumeSnapshot?, VolumeSnapshot?)staticbool
public record VolumeSnapshot
{
public static bool operator ==(
VolumeSnapshot? left,
VolumeSnapshot? right)
{
// ...
}
}
op_Inequality(VolumeSnapshot?, VolumeSnapshot?)Section titled op_Inequality(VolumeSnapshot?, VolumeSnapshot?)staticbool
public record VolumeSnapshot
{
public static bool operator !=(
VolumeSnapshot? left,
VolumeSnapshot? right)
{
// ...
}
}
ToStringSection titled ToStringoverridestring
Returns a string that represents the current object.
public record VolumeSnapshot
{
public override string ToString()
{
// ...
}
}
stringA string that represents the current object.