net11.0
namespace Microsoft.Extensions.Diagnostics.Metrics
{
    [AttributeUsage(AttributeTargets.Method)]
    [Conditional("CODE_GENERATION_ATTRIBUTES")]
    [Experimental("EXTEXP0003", UrlFormat = "https://aka.ms/dotnet-extensions-warnings/{0}")]
    public sealed class GaugeAttribute<T> : Attribute
        where T, struct
    {
        public GaugeAttribute(Type! type);
    }
}
.NET
8.09.010.011.0
.NET Framework
4.6.24.74.7.14.7.24.84.8.1
Information specific to net11.0
Assemblies

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

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

Referencing

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

Package Microsoft.Extensions.Telemetry.Abstractions (10.4.0) net10.0
Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API