DelegatingConfigHost.GetConfigType(String, Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个 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 配置的类型。