Class IDeviceEnvironmentExtensions
Extension methods for IDevice.
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments
Assembly: DeviceConsole.Environments.dll
Syntax
public static class IDeviceEnvironmentExtensions
Methods
View SourceGetEnvironment<T>(IDevice, string?)
Gets the environment matching the given name.
Declaration
public static T GetEnvironment<T>(this IDevice self, string? name = null) where T : IDeviceEnvironment
Parameters
Type | Name | Description |
---|---|---|
IDevice | self | The device context to use. |
string | name | The name determining which environment to get. |
Returns
Type | Description |
---|---|
T | The specified environment. |
Type Parameters
Name | Description |
---|---|
T | The environment type. |
GetSupportedEnvironments<T>(IDevice)
Gets the supported environments for this device.
Declaration
public static IEnumerable<string> GetSupportedEnvironments<T>(this IDevice self) where T : IDeviceEnvironment
Parameters
Type | Name | Description |
---|---|---|
IDevice | self | The device context to use. |
Returns
Type | Description |
---|---|
IEnumerable<string> | An enumeration of supported environment names. |
Type Parameters
Name | Description |
---|---|
T | The environment type. |