PerformanceStatsSubsystem.Register(PerformanceStatsSubsystemCinfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a PerformanceStats subsystem implementation based on the given subsystem parameters.
public static bool Register(MixedReality.Toolkit.Diagnostics.PerformanceStatsSubsystemCinfo performanceStatsSubsystemParams);
static member Register : 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
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 in the following cases:
- The Name is
nullor empty - The ProviderType is
null - The ProviderType does not derive from the PerformanceStatsSubsystem.Provider type.
- The SubsystemTypeOverride does not derive from the PerformanceStatsSubsystem type.