Class VirtualMachine
Describes the state of a Hyper-V virtual machine.
Namespace: Neon.HyperV
Assembly: Neon.HyperV.dll
Syntax
public class VirtualMachine
Properties
MemorySizeBytes
The memory size in bytes.
Declaration
public long MemorySizeBytes { get; set; }
Property Value
Type | Description |
---|---|
long |
Name
The machine name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NetAdapterName
Identifies the network interface or switch to which the address is assigned (or null).
Declaration
public string NetAdapterName { get; set; }
Property Value
Type | Description |
---|---|
string |
ProcessorCount
The number of virtual processors.
Declaration
public int ProcessorCount { get; set; }
Property Value
Type | Description |
---|---|
int |
Ready
Indicates that the virtual machine is ready to perform an operation.
Declaration
public bool Ready { get; set; }
Property Value
Type | Description |
---|---|
bool |
State
The current machine state.
Declaration
public VirtualMachineState State { get; set; }
Property Value
Type | Description |
---|---|
VirtualMachineState |
SwitchName
Identifies the virtual switch to which this virtual machine is attached (or null).
Declaration
public string SwitchName { get; set; }
Property Value
Type | Description |
---|---|
string |
Uptime
Indicates how long the virtual machine has been running.
Declaration
public TimeSpan Uptime { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |