DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / RegisterPerformanceCounters Method

If true, Performance Counters are registered

If true, Performance Counters are removed and re-registered

Example

In This Topic
    RegisterPerformanceCounters Method
    In This Topic
    Specialised use for purely diagnostics purposes. Contact support@medicalconnections.co.uk for more information.
    Syntax
    'Declaration
     
    
    Public Shared Sub RegisterPerformanceCounters( _
       ByVal register As System.Boolean, _
       ByVal reregister As System.Boolean _
    ) 
    public static void RegisterPerformanceCounters( 
       System.bool register,
       System.bool reregister
    )

    Parameters

    register

    If true, Performance Counters are registered

    reregister

    If true, Performance Counters are removed and re-registered

    Example
    bool register = true;
    bool reregister = true;
    DicomGlobal.RegisterPerformanceCounters(register, reregister);
                        
    // After running this, assuming your on windows, Press Win+R, type perfmon and hit enter
    // Navigate to Performance Monitor > click the green + button and select DicomObjects.NET 
    // Choose the counters you want to monitor.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also