ExecResult Class
The result of a command executed inside a container.
public sealed class ExecResult : IEquatable<ExecResult>- Implements
Constructors
| Name | Description |
|---|---|
| ExecResult(int, string, string) | The result of a command executed inside a container. |
ExecResult(int, string, string)
ExecResult.csProperties
| Name | Description |
|---|---|
| ExitCode | The command exit code. |
| StandardError | The captured standard error. |
| StandardOutput | The captured standard output. |
ExitCode
ExecResult.csStandardError
ExecResult.csStandardOutput
ExecResult.csMethods
| Name | Description |
|---|---|
| Deconstruct(int, string, string) | |
| EnsureSuccess() | Throws when the command exited with a non-zero exit code. |
| Equals(ExecResult?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(int, string, string)
EnsureSuccess()
ExecResult.csThrows when the command exited with a non-zero exit code.
public ExecResult EnsureSuccess()Returns
ExecResult This instance, so the call can be chained.
Exceptions
ContainerExecException- The exit code is not 0. The message includes the standard error.
Equals overloads
Equals(ExecResult?)
public bool Equals(ExecResult? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ExecResult?, ExecResult?) | |
| operator !=(ExecResult?, ExecResult?) |
operator ==(ExecResult?, ExecResult?)
public static bool operator ==(ExecResult? left, ExecResult? right)No documentation is available.
operator !=(ExecResult?, ExecResult?)
public static bool operator !=(ExecResult? left, ExecResult? right)No documentation is available.