Gets or sets a value that indicates whether to throw an exception if the serializer encounters unexpected elements or attributes.
Assembly: System.Web.Services (in System.Web.Services.dll)
Set the property to true in order to help debug interoperation scenarios. In general, when the XmlSerializer class meets an element or attribute that it does not expect it raises an UnknownNode event and continues processing. (The same is true when the Order, Order, or Order properties are used but data is sent out of order.) Setting the property to true instructs the Web services run time to handle that event and throw a InvalidOperationException that contains a list of the expected elements and attributes.
Because exceptions are not thrown for all unexpected elements and attributes, the property should not be relied upon except as a debugging aid. For example, unexpected xml:lang and xml:space attributes may not cause an exception.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.