WrapperProviderContext(Type, Boolean) 构造函数

定义

初始化一个 WrapperProviderContext

public:
 WrapperProviderContext(Type ^ declaredType, bool isSerialization);
public WrapperProviderContext (Type declaredType, bool isSerialization);
new Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext : Type * bool -> Microsoft.AspNetCore.Mvc.Formatters.Xml.WrapperProviderContext
Public Sub New (declaredType As Type, isSerialization As Boolean)

参数

declaredType
Type

需要包装的对象的声明类型。

isSerialization
Boolean

true 如果在序列化期间调用包装器提供程序,则为 ;否则为 false

适用于