Class UnknownContentContext
Establishes a configuration context that allows operations to be performed against a provided configuration container. These operations configure the serializer(s) created by the container so that they handle unknown content -- content that isn't recognized in the deserialized document -- in the configured manner.
Inheritance
Inherited Members
Namespace: ExtendedXmlSerializer.Configuration
Assembly: ExtendedXmlSerializer.dll
Syntax
public sealed class UnknownContentContext
Constructors
UnknownContentContext(IConfigurationContainer)
Creates a new instance.
Declaration
public UnknownContentContext(IConfigurationContainer container)
Parameters
IConfigurationContainer
container
The configuration container under configuration. |
Methods
Call(Action<IFormatReader>)
Configures created serializers to call the provided delegate upon encountering unknown content.
Declaration
public IConfigurationContainer Call(Action<IFormatReader> callback)
Parameters
System.Action<IFormatReader>
callback
The delegate to invoke when unknown content is encountered. |
Returns
IConfigurationContainer
The configured configuration container. |
Continue()
Configures created serializers to continue reading if unknown content is encountered.
Declaration
public IConfigurationContainer Continue()
Returns
IConfigurationContainer
The configured configuration container. |
Throw()
Configures created serializers to throw upon encountering unknown content.
Declaration
public IConfigurationContainer Throw()
Returns
IConfigurationContainer
The configured configuration container. |