Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DisableHttpMetricsAttribute Class

Definition

Namespace:
Microsoft.AspNetCore.Http
Assembly:
Microsoft.AspNetCore.Http.Extensions.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.5.26302.115
Package:
Microsoft.AspNetCore.App.Ref v9.0.8

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.

Specifies that HTTP request duration metrics is disabled for an endpoint.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public sealed class DisableHttpMetricsAttribute : Attribute, Microsoft.AspNetCore.Http.Metadata.IDisableHttpMetricsMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type DisableHttpMetricsAttribute = class
 inherit Attribute
 interface IDisableHttpMetricsMetadata
Public NotInheritable Class DisableHttpMetricsAttribute
Inherits Attribute
Implements IDisableHttpMetricsMetadata
Inheritance
DisableHttpMetricsAttribute
Attributes
Implements

Constructors

Name Description
DisableHttpMetricsAttribute()

Methods

Name Description
ToString() System.Attribute.ToString

Applies to


Feedback

Was this page helpful?