DesignerSerializationManager.IDesignerSerializationManager.GetSerializer 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定对象类型获取所请求类型的序列化程序。
virtual System::Object ^ System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetSerializer(Type ^ objectType, Type ^ serializerType) = System::ComponentModel::Design::Serialization::IDesignerSerializationManager::GetSerializer;
object IDesignerSerializationManager.GetSerializer (Type objectType, Type serializerType);
object? IDesignerSerializationManager.GetSerializer (Type? objectType, Type serializerType);
abstract member System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetSerializer : Type * Type -> obj
override this.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.GetSerializer : Type * Type -> obj
Function GetSerializer (objectType As Type, serializerType As Type) As Object Implements IDesignerSerializationManager.GetSerializer
参数
- objectType
- Type
要为其获取序列化程序的对象类型。
- serializerType
- Type
要检索的序列化程序的类型。
返回
请求的序列化程序的实例,如果不能找到任何适当的序列化程序,则为 null
。