VirtualMachineValidation Class |
Namespace: com.softwarekey.Client.Licensing
The VirtualMachineValidation type exposes the following members.
Name | Description | |
---|---|---|
VirtualMachineValidation | Creates a new VirtualMachineValidation object. | |
VirtualMachineValidation(SystemComponentInformation) | Creates a new VirtualMachineValidation object. |
Name | Description | |
---|---|---|
IsVirtual | Gets whether the system is running on a virtual machine guest environment. (This property should only be referenced after calling the Validate method once.) | |
LastError | Gets or sets the last error encountered in this object. (Inherited from SystemValidation.) | |
Type | Gets the type of virtual machine guest environment on which the system is running. (This property should only be referenced after calling the Validate method once.) |
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
Validate | Determines if the system is running on a virtual machine. (Overrides SystemValidationValidate.) |
Caution |
---|
This class can only detect supported hypervisors, which are documented in the VirtualMachineValidationVirtualMachineType enumeration. |
Caution |
---|
It is not possible to guarantee the detection of a virtual machine guest environment, as many hypervisors have settings (which may or may not even be officially supported or documented by the manufacturer of the hypervisor) which allow the hypervisor to change its behavior in ways that could make it difficult to detect. Despite this, this class has been designed to avoid this kind of weakness as much as reasonably possible. Additionally, using these settings for day-to-day application use is typically problematic, which makes it unlikely to encounter this kind of behavior (as users would not typically use such undocumented, unsupported, problematic settings). |
Caution |
---|
The VirtualMachineValidation class is not available in the .NET Standard PLUSManaged assembly. |