Partilhar via


LatencyRegistryServiceCollectionExtensions.RegisterMeasureNames Método

Definição

Registra um conjunto de nomes de medida para um contexto de latência.

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

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar os nomes.

names
String[]

Conjunto de nomes de medida.

Retornos

O valor de services.

Exceções

services ou names é null.

Aplica-se a