Share via


Conversation.Disable 方法

定义

重载

Disable(Type)

通过将特定服务类型替换为直通实现来禁用它。

Disable(Type, ContainerBuilder)

通过将特定服务类型替换为直通实现来禁用它。

Disable(Type)

通过将特定服务类型替换为直通实现来禁用它。

public static void Disable (Type type);
static member Disable : Type -> unit
Public Shared Sub Disable (type As Type)

参数

type
Type

服务类型。

适用于

Disable(Type, ContainerBuilder)

通过将特定服务类型替换为直通实现来禁用它。

public static void Disable (Type type, Autofac.ContainerBuilder builder);
static member Disable : Type * Autofac.ContainerBuilder -> unit
Public Shared Sub Disable (type As Type, builder As ContainerBuilder)

参数

type
Type

服务类型。

builder
Autofac.ContainerBuilder

容器生成器。

适用于