IInternalConfigHost.GetConfigType(String, Boolean) 方法

定义

返回表示配置对象类型的 Type 对象。Returns a Type object representing the type of the configuration object.

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

类型名称The type name

throwOnError
Boolean

如果在出现错误时引发异常,则为 true,否则为 falsetrue to throw an exception if an error occurs; otherwise, false

返回

Type

一个 Type 对象,它表示配置对象的类型。A Type object representing the type of the configuration object.

适用于