SoapEnvelopeProcessingElement.IsStrict Property
Assembly: System.Web.Services (in system.web.services.dll)
/** @property */ public boolean get_IsStrict () /** @property */ public void set_IsStrict (boolean value)
public function get IsStrict () : boolean public function set IsStrict (value : boolean)
Not applicable.
Property Value
true if the Web services serializer tries to detect unexpected elements or attributes; otherwise, false. The default is false.Set the IsStrict 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 IsStrict 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.
Note: |
|---|
|
Because exceptions are not thrown for all unexpected elements and attributes, the IsStrict 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 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Note: