Class HyperVServerVirtualMachineComPort
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a COM port for a Hyper-V virtual machine. This only applies to Generation 1 virtual machines.
public class HyperVServerVirtualMachineComPort : GlobalSerializableBase, IComparable<HyperVServerVirtualMachineComPort>
- Inheritance
-
HyperVServerVirtualMachineComPort
- Implements
Constructors
HyperVServerVirtualMachineComPort()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort class.
public HyperVServerVirtualMachineComPort()
Properties
AttachmentString
Gets the COM port attachment.
public string AttachmentString { get; set; }
Property Value
Name
Gets or sets the name of the virtual machine COM port.
public string Name { get; set; }
Property Value
Path
Gets or sets the path - for example "\machinename\pipe\pipename".
public string Path { get; set; }
Property Value
Methods
Clone()
Returns a CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort cloned from this object.
public HyperVServerVirtualMachineComPort Clone()
Returns
- HyperVServerVirtualMachineComPort
A CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort.
CompareTo(HyperVServerVirtualMachineComPort)
Compares two CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort objects to allow sorting alphabetically by name.
public int CompareTo(HyperVServerVirtualMachineComPort other)
Parameters
other
HyperVServerVirtualMachineComPortThe CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.HyperVServerVirtualMachineComPort objects.
ToString()
Returns the virtual machine COM port as a human readable string.
public override string ToString()
Returns
- string
The virtual machine COM port as a human readable string.