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
- 继承
- 派生
示例
XmlSchemaAny XmlSchemaElement XmlSchemaGroup 有关使用此类的示例,请参阅、或。See XmlSchemaAny, XmlSchemaElement, or XmlSchemaGroup for an example using this class.
注解
粒子类型通常是可互换的。Particle types are usually interchangeable. 粒子可以是本地元素声明,也可以是对全局元素声明的引用 (element) 、组合器 (sequence 、 choice 或 all) 、对命名内容模型组的引用 (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 |
获取或设置 |
| Id |
获取或设置字符串 ID。Gets or sets the string id. (继承自 XmlSchemaAnnotated) |
| LineNumber |
获取或设置 |
| LinePosition |
获取或设置 |
| 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 |
获取或设置用于此架构对象的 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) |