Partager via


LatencyRegistryServiceCollectionExtensions.RegisterMeasureNames Méthode

Définition

Inscrit un ensemble de noms de mesures pour un contexte de latence.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RegisterMeasureNames(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, ... cli::array <System::String ^> ^ names);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RegisterMeasureNames (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, params string[] names);
static member RegisterMeasureNames : Microsoft.Extensions.DependencyInjection.IServiceCollection * string[] -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RegisterMeasureNames (services As IServiceCollection, ParamArray names As String()) As IServiceCollection

Paramètres

services
IServiceCollection

Conteneur d’injection de dépendances à lequel ajouter les noms.

names
String[]

Ensemble de noms de mesures.

Retours

la valeur de la propriété services ;

Exceptions

services ou names est null.

S’applique à