File: System\Diagnostics\InstanceData.cs
Web Access
Project: src\src\runtime\src\libraries\System.Diagnostics.PerformanceCounter\src\System.Diagnostics.PerformanceCounter.csproj (System.Diagnostics.PerformanceCounter)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace System.Diagnostics
{
    /// <summary>
    ///     A holder of instance data.
    /// </summary>
    public class InstanceData
    {
        public InstanceData(string instanceName, CounterSample sample)
        {
            InstanceName = instanceName;
            Sample = sample;
        }

        public string InstanceName { get; }

        public CounterSample Sample { get; }

        public long RawValue
        {
            get
            {
                return Sample.RawValue;
            }
        }
    }
}