共用方式為


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

警告

XmlSchemaElement.ElementType has been deprecated. Use the ElementSchemaType property that returns a strongly typed element type instead.

警告

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,取得 Common Language Runtime (CLR) 物件。

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("XmlSchemaElement.ElementType has been deprecated. Use the ElementSchemaType property that returns a strongly typed element type instead.")]
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
[<System.Obsolete("XmlSchemaElement.ElementType has been deprecated. Use the ElementSchemaType property that returns a strongly typed element type instead.")>]
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
member this.ElementType : obj
Public ReadOnly Property ElementType As Object

屬性值

Object

Common Language Runtime 物件。 ElementType 屬性的編譯後值。

屬性

備註

如果專案具有內建的 XML 架構類型,或者 XmlSchemaSimpleType 專案具有使用者定義型別,則物件可以是 XmlSchemaDatatype

此屬性是架構後驗證資訊集屬性。

重要

屬性 ElementType 在 2.0 版的 .NET Framework 中已過時,而且已由 ElementSchemaType 屬性取代。

適用於