WrapperProviderContext(Type, Boolean) Constructor

Definition

Initializes a 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)

Parameters

declaredType
Type

The declared type of the object that needs to be wrapped.

isSerialization
Boolean

true if the wrapper provider is invoked during serialization, otherwise false.

Applies to