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
继承

示例

有关使用此类的示例,请参阅 XmlSchemaSimpleTypeSee XmlSchemaSimpleType for an example using this class.

注解

当数据类型派生自列表数据类型时,可以使用以下约束方面: lengthmaxLengthminLengthenumerationpatternwhiteSpaceWhen a data type is derived from a list data type, the following constraining facets can be used: length, maxLength, minLength, enumeration, pattern, and whiteSpace.

对于每个 lengthmaxLengthminLength,长度的单位按列表项的数目来度量。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

获取或设置 annotation 属性。Gets or sets the annotation property.

(继承自 XmlSchemaAnnotated)
BaseItemType

根据简单类型的 XmlSchemaSimpleTypesimpleType 值,获取或设置表示该 ItemType 元素类型的 ItemTypeNameGets or sets the XmlSchemaSimpleType representing the type of the simpleType element based on the ItemType and ItemTypeName values of the simple type.

Id

获取或设置字符串 ID。Gets or sets the string id.

(继承自 XmlSchemaAnnotated)
ItemType

获取或设置从基值指定的类型中派生的 simpleType 元素。Gets or sets the simpleType element that is derived from the type specified by the base value.

ItemTypeName

获取或设置内置数据类型的名称或在该架构(或由指定命名空间指示的另一架构)中定义的 simpleType 元素的名称。Gets or sets the name of a built-in data type or simpleType element defined in this schema (or another schema indicated by the specified namespace).

LineNumber

获取或设置 schema 元素引用的文件中的行号。Gets or sets the line number in the file to which the schema element refers.

(继承自 XmlSchemaObject)
LinePosition

获取或设置 schema 元素引用的文件中的行位置。Gets or sets the line position in the file to which the schema element refers.

(继承自 XmlSchemaObject)
Namespaces

获取或设置用于此架构对象的 XmlSerializerNamespacesGets 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()

获取当前实例的 TypeGets 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)

适用于