Class XenResponse
Holds the response from a XenServer command invoked using the xe CLI.
Namespace: Neon.XenServer
Assembly: Neon.XenServer.dll
Syntax
public class XenResponse
Properties
ExitCode
Returns the command exit code.
Declaration
public int ExitCode { get; }
Property Value
Type | Description |
---|---|
int |
Items
The list of raw property dictionaries returned by the command.
Declaration
public List<Dictionary<string, string>> Items { get; }
Property Value
Type | Description |
---|---|
List<Dictionary<string, string>> |
Response
Returns the low-level command response.
Declaration
public ExecuteResponse Response { get; }
Property Value
Type | Description |
---|---|
ExecuteResponse |
Methods
EnsureSuccess()
Ensures that the command executed successfully.
Declaration
public void EnsureSuccess()
Exceptions
Type | Condition |
---|---|
ExecuteException | Thrown when the command failed. |