LatencyRegistryServiceCollectionExtensions.RegisterCheckpointNames 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
註冊延遲內容的一組檢查點名稱。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ RegisterCheckpointNames(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, ... cli::array <System::String ^> ^ names);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection RegisterCheckpointNames (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, params string[] names);
static member RegisterCheckpointNames : Microsoft.Extensions.DependencyInjection.IServiceCollection * string[] -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function RegisterCheckpointNames (services As IServiceCollection, ParamArray names As String()) As IServiceCollection
參數
- services
- IServiceCollection
要加入名稱的相依性插入容器。
- names
- String[]
檢查點名稱集。
傳回
services
的值。
例外狀況
services
或 names
為 null
。