System.Xml.Serialization.XmlMemberMapping.CheckSpecified Property

Gets a value that indicates whether the accompanying field in the .NET Framework type has a value specified.

Syntax

public bool CheckSpecified { get; }

Value

Documentation for this section has not yet been entered.

Remarks

In the XML Schema, an element declared with a minOccurs="0" attribute value indicates that the element is optional. An attribute can be declared with a use="optional" attribute. The .NET Framework, using the XML Schema Definition Tool (Xsd.exe), maps either of these constructs to a public field or property that is accompanied by a public field of type bool whose name is the first field's name with "Specified" appended. The XmlMemberMapping.CheckSpecified property checks whether such a bool field exists.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0