net9.0
namespace Microsoft.Extensions.Diagnostics.Metrics
{
    [AttributeUsage(AttributeTargets.Method)]
    [Conditional("CODE_GENERATION_ATTRIBUTES")]
    public sealed class CounterAttribute : Attribute
    {
        public Type? Type { get; }
    }
}
.NET 6.07.08.09.0
.NET Framework 4.6.24.74.7.14.7.24.84.8.1
Information specific to net9.0
Assemblies

Microsoft.Extensions.Telemetry.Abstractions , Version=9.1.0.0, PublicKeyToken=31bf3856ad364e35

Microsoft.Extensions.Telemetry.Abstractions , Version=8.10.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to Microsoft.Extensions.Telemetry.Abstractions.

Package Microsoft.Extensions.Telemetry.Abstractions (9.1.0-preview.1.24557.5) net9.0
Platform Restrictions

The property getter is supported on all platforms.

  • Built-in API
  • Package-provided API

11/08/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙