语言

DelegatingConfigHost.GetConfigType(String, Boolean) 方法

定义

返回一个 Type 表示配置类型的值。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual Type ^ GetConfigType(System::String ^ typeName, bool throwOnError);
public virtual Type GetConfigType(string typeName, bool throwOnError);
abstract member GetConfigType : string * bool -> Type
override this.GetConfigType : string * bool -> Type
Public Overridable Function GetConfigType (typeName As String, throwOnError As Boolean) As Type

参数

typeName
String

表示配置类型的字符串。

throwOnError
Boolean

true 如果遇到错误,则应引发异常; false 如果遇到错误,则不应引发异常。

返回

表示 Type 配置的类型。

实现

适用于