XmlSchemaSimpleTypeList 类
定义
按 WWW 联合会 (W3C) 指定的方式显示 list 来自 XML 架构的元素。Represents the list element from XML Schema as specified by the World Wide Web Consortium (W3C). 此类可用于将 simpleType 元素定义为指定数据类型的值的列表。This class can be used to define a simpleType element as a list of values of a specified data type.
public ref class XmlSchemaSimpleTypeList : System::Xml::Schema::XmlSchemaSimpleTypeContent
public class XmlSchemaSimpleTypeList : System.Xml.Schema.XmlSchemaSimpleTypeContent
type XmlSchemaSimpleTypeList = class
inherit XmlSchemaSimpleTypeContent
Public Class XmlSchemaSimpleTypeList
Inherits XmlSchemaSimpleTypeContent
- 继承
示例
XmlSchemaSimpleType有关使用此类的示例,请参阅。See XmlSchemaSimpleType for an example using this class.
注解
当数据类型派生自列表数据类型时,可以使用以下约束方面: length 、 maxLength 、 minLength 、 enumeration 、 pattern 和 whiteSpace 。When a data type is derived from a list data type, the following constraining facets can be used: length, maxLength, minLength, enumeration, pattern, and whiteSpace.
对于每个 length 、 maxLength 和 minLength ,长度的单位按列表项的数目来度量。For each length, maxLength, and minLength, the unit of length is measured in number of list items. 的值 whiteSpace 固定为 collapse 值。The value of whiteSpace is fixed to the collapse value.
构造函数
| XmlSchemaSimpleTypeList() |
初始化 XmlSchemaSimpleTypeList 类的新实例。Initializes a new instance of the XmlSchemaSimpleTypeList class. |
属性
| Annotation |
获取或设置 |
| BaseItemType |
根据简单类型的 XmlSchemaSimpleType 和 ItemType 值,获取或设置表示该 |
| Id |
获取或设置字符串 ID。Gets or sets the string id. (继承自 XmlSchemaAnnotated) |
| ItemType |
获取或设置从基值指定的类型中派生的 |
| ItemTypeName |
获取或设置内置数据类型的名称或在该架构(或由指定命名空间指示的另一架构)中定义的 |
| LineNumber |
获取或设置 |
| LinePosition |
获取或设置 |
| Namespaces |
获取或设置用于此架构对象的 XmlSerializerNamespaces。Gets or sets the XmlSerializerNamespaces to use with this schema object. (继承自 XmlSchemaObject) |
| Parent |
获取或设置此 XmlSchemaObject 的父级。Gets or sets the parent of this XmlSchemaObject. (继承自 XmlSchemaObject) |
| SourceUri |
获取或设置加载了架构的文件的源位置。Gets or sets the source location for the file that loaded the schema. (继承自 XmlSchemaObject) |
| UnhandledAttributes |
获取或设置不属于当前架构目标命名空间的限定特性。Gets or sets the qualified attributes that do not belong to the current schema's target namespace. (继承自 XmlSchemaAnnotated) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |