ElementType Property

XmlSchemaElement.ElementType Property

 
Note: This API is now obsolete.

Gets a common language runtime (CLR) object based on the XmlSchemaElement or XmlSchemaElement of the element, which holds the post-compilation value of the ElementType property.

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

[ObsoleteAttribute("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. http://go.microsoft.com/fwlink/?linkid=14202")]
public object ElementType { get; }

Property Value

Type: System.Object

The common language runtime object. The post-compilation value of the ElementType property.

The object can be XmlSchemaDatatype if the element has a built-in XML Schema type or XmlSchemaSimpleType if the element has a user-defined type.

This property is a post-schema-validation infoset property.

System_CAPS_importantImportant

The ElementType property is obsolete in the 2.0 version of the .NET Framework and has been replaced by the ElementSchemaType property.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft