System.Xml.Schema 命名空間

System.Xml.Schema 命名空間 (Namespace) 包含提供 XML 結構描述定義語言 (XSD) 之標準架構支援的 XML 類別。 The System.Xml.Schema namespace contains the XML classes that provide standards-based support for XML schema definition language (XSD) schemas.

類別

Extensions

這個類別包含 XSD 驗證的 LINQ to XML 延伸模組。This class contains the LINQ to XML extension methods for XSD validation.

ValidationEventArgs

傳回與 ValidationEventHandler 相關的詳細資訊。Returns detailed information related to the ValidationEventHandler.

XmlAtomicValue

表示已驗證之 XML 項目或屬性的具型別值。Represents the typed value of a validated XML element or attribute. 無法繼承 XmlAtomicValue 類別 (Class)。The XmlAtomicValue class cannot be inherited.

XmlSchema

XML 結構描述的記憶體內部表示,其依據為全球資訊網協會 (W3C) XML Schema Part 1:Structures (XML 結構描述第 1 部分:結構) 及 XML Schema Part 2:Datatypes (XML 結構描述第 2 部分:資料類型)]。An in-memory representation of an XML Schema, as specified in the World Wide Web Consortium (W3C) XML Schema Part 1: Structures and XML Schema Part 2: Datatypes].

XmlSchemaAll

表示全球資訊網協會 (W3C) 的 all 項目 (複合項)。Represents the World Wide Web Consortium (W3C) all element (compositor).

XmlSchemaAnnotated

可以包含附註項目的任何項目之基底類別。The base class for any element that can contain annotation elements.

XmlSchemaAnnotation

表示全球資訊網協會 (W3C) 的 annotation 項目。Represents the World Wide Web Consortium (W3C) annotation element.

XmlSchemaAny

表示全球資訊網協會 (W3C) 的 any 項目。Represents the World Wide Web Consortium (W3C) any element.

XmlSchemaAnyAttribute

表示全球資訊網協會 (W3C) 的 anyAttribute 項目。Represents the World Wide Web Consortium (W3C) anyAttribute element.

XmlSchemaAppInfo

表示全球資訊網協會 (W3C) 的 appinfo 項目。Represents the World Wide Web Consortium (W3C) appinfo element.

XmlSchemaAttribute

將來自 XML 結構描述的 attribute 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the attribute element from the XML Schema as specified by the World Wide Web Consortium (W3C). 屬性會提供其他文件元素的額外資訊。Attributes provide additional information for other document elements. 屬性標記會以巢狀方式置於結構描述的文件元素標記之間。The attribute tag is nested between the tags of a document's element for the schema. XML 文件會在元素的開頭標記中,將屬性顯示成一個具名的項目。The XML document displays attributes as named items in the opening tag of an element.

XmlSchemaAttributeGroup

將來自 XML 結構描述的 attributeGroup 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the attributeGroup element from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroups 提供群組一組屬性宣告的機制,使其能做為一個群組加入複雜類型定義中。AttributesGroups provides a mechanism to group a set of attribute declarations so that they can be incorporated as a group into complex type definitions.

XmlSchemaAttributeGroupRef

將來自 XML 結構描述之具有 ref 屬性的 attributeGroup 元素,依全球資訊網協會 (W3C) (英文) 規定表示。Represents the attributeGroup element with the ref attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). AttributesGroupRef 是 attributeGroup 的參考,name 屬性包含所參考的屬性群組。AttributesGroupRef is the reference for an attributeGroup, name property contains the attribute group being referenced.

XmlSchemaChoice

將來自 XML 結構描述的 choice 元素 (複合項),依全球資訊網協會 (W3C) 的規定表示。Represents the choice element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). choice 可讓一個執行個體中只允許其子系之一出現。The choice allows only one of its children to appear in an instance.

XmlSchemaCollection

包含 XML 結構描述定義語言 (XSD) 和 XML-Data Reduced (XDR) 結構描述的快取。Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. XmlSchemaCollection 類別已經過時。The XmlSchemaCollection class is obsolete. 請改用 XmlSchemaSetUse XmlSchemaSet instead.

XmlSchemaCollectionEnumerator

支援集合上的簡單重複。Supports a simple iteration over a collection. 此類別無法獲得繼承。This class cannot be inherited.

XmlSchemaCompilationSettings

提供 XmlSchemaSet 類別的結構描述編譯選項。這個類別無法被繼承。Provides schema compilation options for the XmlSchemaSet class This class cannot be inherited.

XmlSchemaComplexContent

將來自 XML 結構描述的 complexContent 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the complexContent element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 表示複雜類型的複雜內容模型。This class represents the complex content model for complex types. 它包含只具有元素或混合內容之複雜類型的擴充或限制。It contains extensions or restrictions on a complex type that has either only elements or mixed content.

XmlSchemaComplexContentExtension

將來自 XML 結構描述的 extension 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the extension element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於具有由擴充衍生之複雜內容模型的複雜類型。This class is for complex types with complex content model derived by extension. 它會藉由加入屬性 (Attribute) 或元素以擴充複雜類型。It extends the complex type by adding attributes or elements.

XmlSchemaComplexContentRestriction

將來自 XML 結構描述的 restriction 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the restriction element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於具有由限制衍生之複雜內容模型的複雜類型。This class is for complex types with a complex content model derived by restriction. 它會將複雜類型的內容限制為繼承複雜類型的子集。It restricts the contents of the complex type to a subset of the inherited complex type.

XmlSchemaComplexType

將來自 XML 結構描述的 complexType 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the complexType element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 定義決定元素屬性 (Attribute) 集和內容的複雜類型。This class defines a complex type that determines the set of attributes and content of an element.

XmlSchemaContent

結構描述內容的抽象類別 (Abstract Class)。An abstract class for schema content.

XmlSchemaContentModel

指定型別子項目的順序和結構。Specifies the order and structure of the child elements of a type.

XmlSchemaDatatype

XmlSchemaDatatype 類別是抽象類別,用於將 XML 結構描述定義語言 (XSD) 型別對應至 Common Language Runtime (CLR) 型別。The XmlSchemaDatatype class is an abstract class for mapping XML Schema definition language (XSD) types to Common Language Runtime (CLR) types.

XmlSchemaDocumentation

將來自 XML 結構描述的 documentation 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the documentation element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別會指定要讓使用者在 annotation 中讀取或使用的資訊。This class specifies information to be read or used by humans within an annotation.

XmlSchemaElement

將來自 XML 結構描述的 element 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the element element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別是所有物件類型的基底類別,並且用於描述 XML 文件中的元素。This class is the base class for all particle types and is used to describe an element in an XML document.

XmlSchemaEnumerationFacet

將來自 XML 結構描述的 enumeration Facet,依全球資訊網協會 (W3C) 的規定表示。Represents the enumeration facet from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 指定 simpleType 元素的有效值清單。This class specifies a list of valid values for a simpleType element. 宣告內含於 restriction 宣告中。Declaration is contained within a restriction declaration.

XmlSchemaException

傳回結構描述例外狀況的詳細資訊。Returns detailed information about the schema exception.

XmlSchemaExternal

抽象類別。An abstract class. 提供包含之結構描述的詳細資訊。Provides information about the included schema.

XmlSchemaFacet

利用限制衍生簡單型別時使用的所有 Facet 的抽象類別 (Abstract Class)。Abstract class for all facets that are used when simple types are derived by restriction.

XmlSchemaFractionDigitsFacet

指定 simpleType 項目分數值所能輸入的數字數目限制。Specifies a restriction on the number of digits that can be entered for the fraction value of a simpleType element. fractionDigits 的值必須是正整數。The value of fractionDigits must be a positive integer. 表示全球資訊網協會 (W3C) 的 fractionDigits Facet。Represents the World Wide Web Consortium (W3C) fractionDigits facet.

XmlSchemaGroup

將來自 XML 結構描述的 group 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the group element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別會在 schema 層級定義從複雜型別參考而來的群組。This class defines groups at the schema level that are referenced from the complex types. 它會群組一組元素宣告,以做為一個群組加入複雜類型定義中。It groups a set of element declarations so that they can be incorporated as a group into complex type definitions.

XmlSchemaGroupBase

XmlSchemaAllXmlSchemaChoiceXmlSchemaSequence 的抽象類別 (Abstract Class)。An abstract class for XmlSchemaAll, XmlSchemaChoice, or XmlSchemaSequence.

XmlSchemaGroupRef

將來自 XML 結構描述、具有 group 屬性的 ref 元素,依全球資訊網協會 (W3C) 規定表示。Represents the group element with ref attribute from the XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於複雜型別中,以參考在 group 層級定義的 schemaThis class is used within complex types that reference a group defined at the schema level.

XmlSchemaIdentityConstraint

識別條件約束的類別:keykeyrefunique 項目。Class for the identity constraints: key, keyref, and unique elements.

XmlSchemaImport

將來自 XML 結構描述的 import 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the import element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於從其他結構描述匯入結構描述元件。This class is used to import schema components from other schemas.

XmlSchemaInclude

將來自 XML 結構描述的 include 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the include element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於包含來自外部結構描述的宣告和定義。This class is used to include declarations and definitions from an external schema. 然後,所包含的宣告和定義可用於包含結構描述中的處理。The included declarations and definitions are then available for processing in the containing schema.

XmlSchemaInference

從 XML 文件推斷 XML 結構描述定義語言 (XSD) 結構描述。Infers an XML Schema Definition Language (XSD) schema from an XML document. 無法繼承 XmlSchemaInference 類別 (Class)。The XmlSchemaInference class cannot be inherited.

XmlSchemaInferenceException

在從 XML 文件推斷結構描述 (Schema) 時,傳回 XmlSchemaInference 類別 (Class) 所遇到之錯誤的相關資訊。Returns information about errors encountered by the XmlSchemaInference class while inferring a schema from an XML document.

XmlSchemaInfo

表示已驗證之 XML 節點的後結構描述驗證資訊集。Represents the post-schema-validation infoset of a validated XML node.

XmlSchemaKey

此類別會將來自 XML 結構描述的 key 元素,依全球資訊網協會 (W3C) 的規定表示。This class represents the key element from XMLSchema as specified by the World Wide Web Consortium (W3C).

XmlSchemaKeyref

此類別會將來自 XML 結構描述的 keyref 元素,依全球資訊網協會 (W3C) 的規定表示。This class represents the keyref element from XMLSchema as specified by the World Wide Web Consortium (W3C).

XmlSchemaLengthFacet

將來自 XML 結構描述的 length Facet,依全球資訊網協會 (W3C) 的規定表示。Represents the length facet from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於指定資料型別上 simpleType 項目的長度限制。This class can be used to specify a restriction on the length of a simpleType element on the data type.

XmlSchemaMaxExclusiveFacet

將來自 XML 結構描述的 maxExclusive 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the maxExclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於指定對 simpleType 項目之最大值的限制。This class can be used to specify a restriction on the maximum value of a simpleType element. 該項目值必須小於 maxExclusive 項目的值。The element value must be less than the value of the maxExclusive element.

XmlSchemaMaxInclusiveFacet

將來自 XML 結構描述的 maxInclusive 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the maxInclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於指定對 simpleType 項目之最大值的限制。This class can be used to specify a restriction on the maximum value of a simpleType element. 項目值必須小於或等於 maxInclusive 項目的值。The element value must be less than or equal to the value of the maxInclusive element.

XmlSchemaMaxLengthFacet

將來自 XML 結構描述的 maxLength 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the maxLength element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於指定對 simpleType 項目之資料值最大長度的限制。This class can be used to specify a restriction on the maximum length of the data value of a simpleType element. 該長度必須小於 maxLength 項目的值。The length must be less than the value of the maxLength element.

XmlSchemaMinExclusiveFacet

將來自 XML 結構描述的 minExclusive 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the minExclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於指定對 simpleType 項目之最小值的限制。This class can be used to specify a restriction on the minimum value of a simpleType element. 該項目值必須大於 minExclusive 項目的值。The element value must be greater than the value of the minExclusive element.

XmlSchemaMinInclusiveFacet

將來自 XML 結構描述的 minInclusive 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the minInclusive element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於指定對 simpleType 元素之最小值的限制。This class can be used to specify a restriction on the minimum value of a simpleType element. 該項目值必須大於或等於 minInclusive 項目的值。The element value must be greater than or equal to the value of the minInclusive element.

XmlSchemaMinLengthFacet

將來自 XML 結構描述的 minLength 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the minLength element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於指定 simpleType 項目之資料值的最小長度限制。This class can be used to specify a restriction on the minimum length of the data value of a simpleType element. 長度必須大於 minLength 項目的值。The length must be greater than the value of the minLength element.

XmlSchemaNotation

將來自 XML 結構描述的 notation 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the notation element from XML Schema as specified by the World Wide Web Consortium (W3C). XML 結構描述 notation 宣告是 XML 1.0 NOTATION 宣告的重新建構。An XML Schema notation declaration is a reconstruction of XML 1.0 NOTATION declarations. 標記法的目的是描述 XML 文件中非 XML 資料的格式。The purpose of notations is to describe the format of non-XML data within an XML document.

XmlSchemaNumericFacet

定義 numeric Facet 的抽象類別 (Abstract Class)。Abstract class for defining numeric facets. 這個類別是 XmlSchemaMinLengthFacet 等數字 Facet 類別的基底類別。This class is the base class for numeric facet classes such as XmlSchemaMinLengthFacet

XmlSchemaObject

表示 Xml 結構描述物件模型階層架構的根類別,並且做為 XmlSchema 等類別的基底類別。Represents the root class for the Xml schema object model hierarchy and serves as a base class for classes such as the XmlSchema class.

XmlSchemaObjectCollection

XmlSchemaObject 的集合。A collection of XmlSchemaObjects.

XmlSchemaObjectEnumerator

代表 XmlSchemaObjectCollection 的列舉程式。Represents the enumerator for the XmlSchemaObjectCollection.

XmlSchemaObjectTable

提供 XmlSchema 類別中所包含項目的集合 (例如,Attributes、AttributeGroups、Elements 等)。Provides the collections for contained elements in the XmlSchema class (for example, Attributes, AttributeGroups, Elements, and so on).

XmlSchemaParticle

該物件的抽象類別是所有物件型別的基底類別 (例如,XmlSchemaAny)。Abstract class for that is the base class for all particle types (e.g. XmlSchemaAny).

XmlSchemaPatternFacet

將來自 XML 結構描述的 pattern 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the pattern element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於指定對 simpleType 項目輸入之值的限制。This class can be used to specify a restriction on the value entered for a simpleType element.

XmlSchemaRedefine

將來自 XML 結構描述的 redefine 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the redefine element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於允許在目前結構描述中,重新定義外部結構描述檔案中的簡單和複雜類型、群組及屬性 (Attribute) 群組。This class can be used to allow simple and complex types, groups and attribute groups from external schema files to be redefined in the current schema. 這個類別還可用於提供結構描述元素的版本控制。This class can also be used to provide versioning for the schema elements.

XmlSchemaSequence

將來自 XML 結構描述的 sequence 元素 (複合項),依全球資訊網協會 (W3C) 的規定表示。Represents the sequence element (compositor) from the XML Schema as specified by the World Wide Web Consortium (W3C). sequence 要求群組中的項目在包含項目中以指定的順序出現。The sequence requires the elements in the group to appear in the specified sequence within the containing element.

XmlSchemaSet

包含 XML 結構描述定義語言 (XSD) 結構描述的快取。Contains a cache of XML Schema definition language (XSD) schemas.

XmlSchemaSimpleContent

將來自 XML 結構描述的 simpleContent 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the simpleContent element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 用於具有簡單內容模型的簡單和複雜類型。This class is for simple and complex types with simple content model.

XmlSchemaSimpleContentExtension

將來自 XML 結構描述之簡單內容的 extension 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the extension element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於由擴充衍生簡單類型。This class can be used to derive simple types by extension. 這種衍生用於藉由加入屬性 (Attribute) 來擴充元素的簡單類型內容。Such derivations are used to extend the simple type content of the element by adding attributes.

XmlSchemaSimpleContentRestriction

將來自 XML 結構描述之簡單內容的 restriction 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the restriction element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於透過限制衍生簡單類型。This class can be used to derive simple types by restriction. 此類衍生可用於將元素值的範圍限制為在繼承之簡單類型中指定的值子集。Such derivations can be used to restrict the range of values for the element to a subset of the values specified in the inherited simple type.

XmlSchemaSimpleType

將來自 XML 結構描述之簡單內容的 simpleType 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the simpleType element for simple content from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 定義簡單類型。This class defines a simple type. 簡單類型可以指定具有純文字內容之屬性 (Attribute) 或元素值的資訊和條件約束。Simple types can specify information and constraints for the value of attributes or elements with text-only content.

XmlSchemaSimpleTypeContent

簡單型別內容類別的抽象類別 (Abstract Class)。Abstract class for simple type content classes.

XmlSchemaSimpleTypeList

將來自 XML 結構描述的 list 項目依 World Wide Web Consortium (W3C) 規定表示。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.

XmlSchemaSimpleTypeRestriction

將來自 XML 結構描述之簡單類型的 restriction 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the restriction element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於限制 simpleType 項目。This class can be used restricting simpleType element.

XmlSchemaSimpleTypeUnion

將來自 XML 結構描述之簡單類型的 union 元素,依全球資訊網協會 (W3C) 的規定表示。Represents the union element for simple types from XML Schema as specified by the World Wide Web Consortium (W3C). union 資料型別可以用來指定 simpleType 的內容。A union datatype can be used to specify the content of a simpleType. simpleType 項目的值必須是等位中指定之一組替代資料型別的其中任何一個。The value of the simpleType element must be any one of a set of alternative datatypes specified in the union. 等位型別一定是衍生的類型,並且必須至少由兩個替代資料類型構成。Union types are always derived types and must comprise at least two alternative datatypes.

XmlSchemaTotalDigitsFacet

將來自 XML 結構描述的 totalDigits Facet,依全球資訊網協會 (W3C) 的規定表示。Represents the totalDigits facet from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別可用於指定對可以為 simpleType 項目值輸入之位數的限制。This class can be used to specify a restriction on the number of digits that can be entered for the value of a simpleType element. totalDigits 值必須是正整數。That value of totalDigits must be a positive integer.

XmlSchemaType

所有簡單型別和複雜型別的基底類別。The base class for all simple types and complex types.

XmlSchemaUnique

將來自 XML 結構描述的 unique 項目依 World Wide Web Consortium (W3C) 規定表示。Represents the unique element from XML Schema as specified by the World Wide Web Consortium (W3C). 這個類別 (Class) 可用於識別一組元素中唯一的條件約束 (Unique Constraint)。This class can be used to identify a unique constraint among a set of elements.

XmlSchemaValidationException

表示在正在驗證之 XML 文件中遇到 XML 結構描述定義語言 (XSD) 結構描述驗證錯誤和警告時,所擲回的例外狀況。Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated.

XmlSchemaValidator

表示 XML 結構描述定義語言 (XSD) 結構描述驗證引擎。Represents an XML Schema Definition Language (XSD) Schema validation engine. 無法繼承 XmlSchemaValidator 類別 (Class)。The XmlSchemaValidator class cannot be inherited.

XmlSchemaWhiteSpaceFacet

表示全球資訊網協會 (W3C) 的 whiteSpace Facet。Represents the World Wide Web Consortium (W3C) whiteSpace facet.

XmlSchemaXPath

表示全球資訊網協會 (W3C) 的 selector 項目。Represents the World Wide Web Consortium (W3C) selector element.

介面

IXmlSchemaInfo

定義已驗證之 XML 節點的後結構描述驗證資訊集。Defines the post-schema-validation infoset of a validated XML node.

列舉

XmlSchemaContentProcessing

提供 anyanyAttribute 項目取代之驗證模式的相關資訊。Provides information about the validation mode of any and anyAttribute element replacements.

XmlSchemaContentType

複雜型別之內容模型的列舉型別 (Enumeration)。 這表示 post-schema-validation 資訊集 (infoset) 中的內容。This represents the content in the post-schema-validation information set (infoset).

XmlSchemaDatatypeVariety

指定 W3C XML 結構描述資料型別的各種型別。Specifies the W3C XML schema data type variety of the type.

XmlSchemaDerivationMethod

提供防止衍生的各種方法。Provides different methods for preventing derivation.

XmlSchemaForm

表示屬性或項目是否需要以命名空間前置詞限定。Indicates if attributes or elements need to be qualified with a namespace prefix.

XmlSchemaInference.InferenceOption

影響由 XmlSchemaInference 類別為 XML 文件中的項目和屬性所推斷的符合項目和型別資訊。Affects occurrence and type information inferred by the XmlSchemaInference class for elements and attributes in an XML document.

XmlSchemaUse

如何使用屬性的指示器。Indicator of how the attribute is used.

XmlSchemaValidationFlags

指定 XmlSchemaValidatorXmlReader 類別 (Class) 所使用的結構描述驗證選項。Specifies schema validation options used by the XmlSchemaValidator and XmlReader classes.

XmlSchemaValidity

表示 XmlSchemaValidator 類別所驗證之 XML 項目的有效性。Represents the validity of an XML item validated by the XmlSchemaValidator class.

XmlSeverityType

表示驗證事件的嚴重性。Represents the severity of the validation event.

XmlTypeCode

表示 W3C XML 結構描述定義語言 (XSD) 結構描述型別。Represents the W3C XML Schema Definition Language (XSD) schema types.

委派

ValidationEventHandler

表示將處理 XML 結構描述驗證事件和 ValidationEventArgs 的回呼方法。Represents the callback method that will handle XML schema validation events and the ValidationEventArgs.

XmlValueGetter

delegate 類別使用的 XmlSchemaValidator,用來將屬性、文字和泛空白字元值做為與屬性、文字或泛空白字元的 XML 結構描述定義語言 (XSD) 型別相容的 Common Language Runtime (CLR) 型別進行傳遞。A delegate used by the XmlSchemaValidator class to pass attribute, text, and white space values as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute, text, or white space.

備註

重要

  • 請勿使用從未知或未受信任的來源或位置的結構描述。Do not use schemas from unknown or untrusted sources or locations. 如此一來會危及您的程式碼的安全性。Doing so will compromise the security of your code.
  • XML 結構描述 (包括內嵌結構描述) 是本質上容易遭到阻絕服務攻擊;不接受這些未受信任的案例中。XML schemas (including inline schemas) are inherently vulnerable to denial of service attacks; do not accept them in untrusted scenarios.
  • 結構描述驗證錯誤訊息和例外狀況可能會公開機密資訊的內容模型或結構描述檔案的 URI 路徑。Schema validation error messages and exceptions may expose sensitive information about the content model or URI paths to the schema file. 請小心,不要公開 (expose) 給未受信任的呼叫端的這項資訊。Be careful not to expose this information to untrusted callers.
  • 其他安全性考量事項涵蓋在此命名空間中的 Api 的 < 備註 > 一節。Additional security considerations are covered in the Remarks section of the APIs in this namespace.

另請參閱