mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
IsWindows property added to the VM class.
Returns true if this VM is Windows. Ignore PV guests, then check if viridian platform property is set. This is based on the assumption that the viridian flag is always true for a windows VM. Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
parent
adf6cded90
commit
a73252c9fe
@ -1838,6 +1838,18 @@ namespace XenAPI
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this VM is Windows.
|
||||
/// </summary>
|
||||
public bool IsWindows
|
||||
{
|
||||
get
|
||||
{
|
||||
return
|
||||
this.IsHVM && BoolKey(this.platform, "viridian");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct VMStartupOptions
|
||||
|
Loading…
Reference in New Issue
Block a user