XmlSchemaType 类

定义

所有简单类型和复杂类型的基类。The base class for all simple types and complex types.

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

示例

有关使用此类的示例,请参阅 XmlSchemaSimpleType 类和 XmlSchemaComplexType 类。See the XmlSchemaSimpleType class and the XmlSchemaComplexType class for an example using this class.

构造函数

XmlSchemaType()

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

属性

Annotation

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

(继承自 XmlSchemaAnnotated)
BaseSchemaType

获取编译后对象类型或内置 XML 架构定义语言 (XSD) 数据类型、simpleType 元素或 complexType 元素。Gets the post-compilation object type or the built-in XML Schema Definition Language (XSD) data type, simpleType element, or complexType element. 这是一个后架构编译信息集属性。This is a post-schema-compilation infoset property.

BaseXmlSchemaType

获取此架构类型的基类型的编译后值。Gets the post-compilation value for the base type of this schema type.

Datatype

获取此复杂类型的数据类型的编译后值。Gets the post-compilation value for the data type of the complex type.

DerivedBy

获取有关此元素如何从其基类型派生的编译后信息。Gets the post-compilation information on how this element was derived from its base type.

Final

获取或设置指示是否允许进一步派生的类型派生的最终特性。Gets or sets the final attribute of the type derivation that indicates if further derivations are allowed.

FinalResolved

获取 Final 属性的编译后值。Gets the post-compilation value of the Final property.

Id

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

(继承自 XmlSchemaAnnotated)
IsMixed

获取或设置指示此类型是否具有混合内容模型的值。Gets or sets a value indicating if this type has a mixed content model. 该属性仅在复杂类型中有效。This property is only valid in a complex type.

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

获取或设置类型的名称。Gets or sets the name of the type.

Namespaces

获取或设置用于此架构对象的 XmlSerializerNamespacesGets or sets the XmlSerializerNamespaces to use with this schema object.

(继承自 XmlSchemaObject)
Parent

获取或设置此 XmlSchemaObject 的父级。Gets or sets the parent of this XmlSchemaObject.

(继承自 XmlSchemaObject)
QualifiedName

获取从此类型的 Name 特性中生成的此类型的限定名。Gets the qualified name for the type built from the Name attribute of this type. 这是一个后架构编译属性。This is a post-schema-compilation property.

SourceUri

获取或设置加载了架构的文件的源位置。Gets or sets the source location for the file that loaded the schema.

(继承自 XmlSchemaObject)
TypeCode

获取类型的 XmlTypeCodeGets the XmlTypeCode of the type.

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

返回一个 XmlSchemaComplexType,它表示由限定名所指定的复杂类型的内置复杂类型。Returns an XmlSchemaComplexType that represents the built-in complex type of the complex type specified by qualified name.

GetBuiltInComplexType(XmlTypeCode)

返回一个 XmlSchemaComplexType,它表示指定的复杂类型的内置复杂类型。Returns an XmlSchemaComplexType that represents the built-in complex type of the complex type specified.

GetBuiltInSimpleType(XmlQualifiedName)

返回一个 XmlSchemaSimpleType,它表示由限定名所指定的简单类型的内置简单类型。Returns an XmlSchemaSimpleType that represents the built-in simple type of the simple type that is specified by the qualified name.

GetBuiltInSimpleType(XmlTypeCode)

返回一个 XmlSchemaSimpleType,它表示指定的简单类型的内置简单类型。Returns an XmlSchemaSimpleType that represents the built-in simple type of the specified simple type.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IsDerivedFrom(XmlSchemaType, XmlSchemaType, XmlSchemaDerivationMethod)

返回一个值,指示指定的派生架构类型是否从指定的基架构类型派生。Returns a value indicating if the derived schema type specified is derived from the base schema type specified.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于