PerformanceStatsSubsystem.Register(PerformanceStatsSubsystemCinfo) Method

Definition

Registers a PerformanceStats subsystem implementation based on the given subsystem parameters.

public:
 static bool Register(Microsoft::MixedReality::Toolkit::Diagnostics::PerformanceStatsSubsystemCinfo performanceStatsSubsystemParams);
public static bool Register (Microsoft.MixedReality.Toolkit.Diagnostics.PerformanceStatsSubsystemCinfo performanceStatsSubsystemParams);
static member Register : Microsoft.MixedReality.Toolkit.Diagnostics.PerformanceStatsSubsystemCinfo -> bool
Public Shared Function Register (performanceStatsSubsystemParams As PerformanceStatsSubsystemCinfo) As Boolean

Parameters

performanceStatsSubsystemParams
PerformanceStatsSubsystemCinfo

The parameters defining the PerformanceStats subsystem functionality implemented by the subsystem provider.

Returns

Boolean

true if the subsystem implementation is registered. Otherwise, false.

Exceptions

Thrown when the values specified in the PerformanceStatsSubsystemCinfo parameter are invalid. Typically, this will occur

  • if PerformanceStatsSubsystemCinfo.id is null or empty
  • if PerformanceStatsSubsystemCinfo.implementationType is null
  • if PerformanceStatsSubsystemCinfo.implementationType does not derive from the PerformanceStatsSubsystem class

Applies to