ActivityCodeDomSerializationManager.GetSerializer(Type, Type) 方法

定义

获取指定的 Object 类型的所请求类型的序列化程序。Gets a serializer of the requested type for the specified Object type.

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

参数

objectType
Type

要为其获取序列化程序的 TypeObjectThe Type of the Object for which to obtain the serializer.

serializerType
Type

要检索的序列化程序的 TypeThe Type of serializer to retrieve.

返回

指定的 Object 类型的所请求类型的序列化程序。A serializer of the requested type for the specified Object type.

实现

注解

如果对象类型为字符串,则返回默认序列化程序。If the object type is a string, a default serializer is returned. 否则,将调用 SerializationManager 的对应方法。Otherwise the corresponding method of the SerializationManager is invoked.

适用于