LatencyRegistryServiceCollectionExtensions.RegisterMeasureNames 方法

定义

为延迟上下文注册一组度量值名称。

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

参数

services
IServiceCollection

要向其添加名称的依赖项注入容器。

names
String[]

度量值名称集。

返回

services 的值。

例外

servicesnamesnull

适用于