Class Platform
Represents the platform on which tests are to be run.
public class Platform
- Inheritance
-
Platform
- Inherited Members
Constructors
Platform(PlatformType)
Initializes a new instance of the Platform class for a specific platform type.
public Platform(PlatformType typeValue)
Parameters
typeValue
PlatformTypeThe platform type.
Properties
CurrentPlatform
Gets the current platform.
public static Platform CurrentPlatform { get; }
Property Value
MajorVersion
Gets the major version of the platform operating system.
public int MajorVersion { get; }
Property Value
MinorVersion
Gets the major version of the platform operating system.
public int MinorVersion { get; }
Property Value
PlatformType
Gets the type of the platform.
public PlatformType PlatformType { get; }
Property Value
ProtocolPlatformType
Gets the value of the platform type for transmission using the JSON Wire Protocol.
public string ProtocolPlatformType { get; }
Property Value
Methods
IsPlatformType(PlatformType)
Compares the platform to the specified type.
public bool IsPlatformType(PlatformType compareTo)
Parameters
compareTo
PlatformTypeA PlatformType value to compare to.
Returns
ToString()
Returns the string value for this platform type.
public override string ToString()
Returns
- string
The string value for this platform type.