IDesignerSerializationManager.GetSerializer(Type, Type) 方法

定义

为指定对象类型获取所请求类型的序列化程序。

public:
 System::Object ^ GetSerializer(Type ^ objectType, Type ^ serializerType);
public object GetSerializer (Type objectType, Type serializerType);
public object? GetSerializer (Type? objectType, Type serializerType);
abstract member GetSerializer : Type * Type -> obj
Public Function GetSerializer (objectType As Type, serializerType As Type) As Object

参数

objectType
Type

要为其获取序列化程序的对象类型。

serializerType
Type

要检索的序列化程序的类型。

返回

请求的序列化程序的实例,如果不能找到任何适当的序列化程序,则为 null

适用于