XmlSchemaElement.ElementType 属性

定义

注意

This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. https://go.microsoft.com/fwlink/?linkid=14202

注意

This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. http://go.microsoft.com/fwlink/?linkid=14202

基于保存编译后 ElementType 属性值的元素的 XmlSchemaElementXmlSchemaElement,获取公共语言运行时 (CLR) 对象。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.

public:
 property System::Object ^ ElementType { System::Object ^ get(); };
[System.Obsolete("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. https://go.microsoft.com/fwlink/?linkid=14202")]
public object? ElementType { get; }
[System.Obsolete("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; }
[System.Obsolete("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. https://go.microsoft.com/fwlink/?linkid=14202")]
public object ElementType { get; }
public object ElementType { get; }
[<System.Obsolete("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.ElementType : obj
member this.ElementType : obj
[<System.Obsolete("This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.ElementType : obj
Public ReadOnly Property ElementType As Object

属性值

Object

公共语言运行库对象。The common language runtime object. ElementType 属性的编译后值。The post-compilation value of the ElementType property.

属性

注解

XmlSchemaDatatype如果元素具有内置的 XML 架构类型,或者 XmlSchemaSimpleType 如果元素具有用户定义的类型,则对象可以为。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.

重要

ElementType 属性在 .NET Framework 的2.0 版本中已过时,并且已被 ElementSchemaType 属性替换。The ElementType property is obsolete in the 2.0 version of the .NET Framework and has been replaced by the ElementSchemaType property.

适用于