AutofacContainerIsRegistered(Type, String) 方法
判断某类型是否已经注册
命名空间: TouchSocket.Core程序集: TouchSocket.Core.Autofac (在 TouchSocket.Core.Autofac.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public bool IsRegistered(
Type fromType,
string key
)
Public Function IsRegistered (
fromType As Type,
key As String
) As Boolean
abstract IsRegistered :
fromType : Type *
key : string -> bool
override IsRegistered :
fromType : Type *
key : string -> bool
- fromType Type
- 要检查的类型
- key String
- 与类型关联的唯一键,用于特定的注册场景
Boolean如果类型已注册,则返回 true;否则返回 false
IRegisteredIsRegistered(Type, String)