XmlSchemaParticle 类

定义

所有粒子类型的基类的抽象类(例如,XmlSchemaAny)。Abstract class for that is the base class for all particle types (e.g. XmlSchemaAny).

public ref class XmlSchemaParticle abstract : System::Xml::Schema::XmlSchemaAnnotated
public abstract class XmlSchemaParticle : System.Xml.Schema.XmlSchemaAnnotated
type XmlSchemaParticle = class
    inherit XmlSchemaAnnotated
Public MustInherit Class XmlSchemaParticle
Inherits XmlSchemaAnnotated
继承
派生

示例

有关使用此类的示例,请参阅 XmlSchemaAnyXmlSchemaElementXmlSchemaGroupSee XmlSchemaAny, XmlSchemaElement, or XmlSchemaGroup for an example using this class.

注解

粒子类型通常是可互换的。Particle types are usually interchangeable. 粒子可以是本地元素声明或引用全局元素声明(element)、组合器(sequencechoiceall)、命名内容模型组的引用(group)或元素通配符(any)。Particle can be a local element declaration or reference to a global element declaration (element), a compositor (sequence, choice, or all), a reference to a named content model group (group), or an element wildcard (any).

构造函数

XmlSchemaParticle()

初始化 XmlSchemaParticle 类的新实例。Initializes a new instance of the XmlSchemaParticle class.

属性

Annotation

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

(继承自 XmlSchemaAnnotated)
Id

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

(继承自 XmlSchemaAnnotated)
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)
MaxOccurs

获取或设置粒子可发生的最大次数。Gets or sets the maximum number of times the particle can occur.

MaxOccursString

获取设置字符串值形式的数字。Gets or sets the number as a string value. 粒子可发生的最大次数。Maximum number of times the particle can occur.

MinOccurs

获取或设置粒子可发生的最小次数。Gets or sets the minimum number of times the particle can occur.

MinOccursString

获取设置字符串值形式的数字。Gets or sets the number as a string value. 粒子可发生的最小次数。The minimum number of times the particle can occur.

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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于