Click or drag to resize
SerializationExtensionsContainsField Method
Returns if provided fieldName has at least one reference in the failedMappings collection.

Namespace: CMS.DataEngine.Serialization
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
public static bool ContainsField(
	this ICollection<FailedMapping> failedMappings,
	string fieldName
)

Parameters

failedMappings
Type: System.Collections.GenericICollectionFailedMapping
Collection of failed mappings (see DeserializationResult).
fieldName
Type: SystemString
Name of field that might be present in the collection

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICollectionFailedMapping. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
fieldName comparison is case insensitive.
See Also