XmlSchemaDatatype.ValueType 属性


在派生类中重写时,获取项的公共语言运行时 (CLR) 类型。When overridden in a derived class, gets the Common Language Runtime (CLR) type of the item.

 abstract property Type ^ ValueType { Type ^ get(); };
public abstract Type ValueType { get; }
member this.ValueType : Type
Public MustOverride ReadOnly Property ValueType As Type


项的公共语言运行时 (CLR) 类型。The Common Language Runtime (CLR) type of the item.


有关 ValueType 属性的示例,请参阅 XmlSchemaDatatypeFor an example of the ValueType property, see XmlSchemaDatatype.


ValueType 属性获取项的 CLR 类型。The ValueType property gets the CLR type of the item. 例如,默认情况下,类型 xs:int 的元素具有 Int32 ValueTypeFor example, an element of type xs:int would have a ValueType of Int32 by default. ValueType 可以是可以映射到 xs:int的有效类型之一,如 Int16DoubleHowever, the ValueType could be any one of the valid types that can be mapped to xs:int, such as Int16 or Double.

有关 System.Xml 命名空间中的类型支持的详细信息,请参阅System.web 类中的类型支持For more information about type support in the System.Xml namespace, see Type Support in the System.Xml Classes.