语言

IInternalConfigHost.GetConfigType(String, Boolean) 方法

定义

返回一个 Type 对象,该对象表示配置对象的类型。

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

参数

typeName
String

类型名称。

throwOnError
Boolean

true 如果发生错误,则引发异常;否则,为 false.

返回

表示 Type 配置对象的类型的对象。

适用于