DesignerSerializationManager.GetType(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取请求的类型。
protected:
virtual Type ^ GetType(System::String ^ typeName);
protected virtual Type GetType(string typeName);
protected virtual Type? GetType(string? typeName);
override this.GetType : string -> Type
Protected Overridable Function GetType (typeName As String) As Type
参数
- typeName
- String
要检索的类型的名称。
返回
请求的类型,或者 null 无法解析该类型。
注解
该方法 GetType 将搜索服务提供商以获取一个 ITypeResolutionService 服务,如果可用,它将委托给该服务以解析类型。 如果不可用 ITypeResolutionService , GetType 将调用该方法 Object.GetType 。