XmlSchemaContentType Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Enumerations for the content model of the complex type. This represents the content in the post-schema-validation information set (infoset).

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public enum XmlSchemaContentType

Member nameDescription
ElementOnly

Element-only content.

Empty

Empty content.

Mixed

Mixed content.

TextOnly

Text-only content.

If the IsMixed property is set to true on the ContentModel property that has the type XmlSchemaComplexContent, the value returned here is Mixed. If the IsMixed property is false, the value is either Empty or ElementOnly.

If the type on the ContentModel property has the type XmlSchemaSimpleContent, this value is always TextOnly.

.NET Framework
Available since 1.1
Return to top
Show: