Show / Hide Table of Contents

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
System.Object
UnknownContentContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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.

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)

See Also

https://github.com/ExtendedXmlSerializer/home/issues/271
Back to top Generated by DocFX