Click or drag to resize

Machine.StoragePolicy Property

Returns a unique storage policy value from the VM or "inconclusive"

Namespace:  VMInfoFace.Data
Assembly:  VMInfoFace.Data (in VMInfoFace.Data.dll) Version: 21.5.28.1 (21.5.28.1171)
Syntax
public string StoragePolicy { get; }

Property Value

Type: String
Remarks
If not be determined unambiguously of value then gives "inconclusive" returned.
Examples
This example evaluates the storage policy
switch (MyVMMachnie.StoragePolicy)
{
    case "inconclusive":
        // The virtual machine storage policy could not be clearly defined based on property StoragePolicies
        break;
    case "Gold Storage":
        // ...
        break;
    case "Bronze Storage":
        // ...
        break;
    default:
        // ...
        break;
}        ///
See Also