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:
Gabor Apati-Nagy 2015-06-10 15:04:38 +01:00
parent adf6cded90
commit a73252c9fe

View File

@ -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