LatencyRegistryServiceCollectionExtensions.RegisterMeasureNames 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为延迟上下文注册一组度量值名称。
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
的值。
例外
services
或 names
为 null
。