Show / Hide Table of Contents

Class IDeviceEnvironmentExtensions

Extension methods for IDevice.

Inheritance
object
IDeviceEnvironmentExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments
Assembly: DeviceConsole.Environments.dll
Syntax
public static class IDeviceEnvironmentExtensions

Methods

View Source

GetEnvironment<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.

View Source

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.

  • View Source
In This Article
Back to top Generated by DocFX