XmlSchemas 類別

定義

表示 XML 結構描述的集合。Represents the collection of XML schemas.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class XmlSchemas : System::Collections::CollectionBase, System::Collections::Generic::IEnumerable<System::Xml::Schema::XmlSchema ^>
public class XmlSchemas : System.Collections.CollectionBase, System.Collections.Generic.IEnumerable<System.Xml.Schema.XmlSchema>
type XmlSchemas = class
    inherit CollectionBase
    interface seq<XmlSchema>
    interface IEnumerable
Public Class XmlSchemas
Inherits CollectionBase
Implements IEnumerable(Of XmlSchema)
繼承
XmlSchemas
實作

建構函式

XmlSchemas()

初始化 XmlSchemas 類別的新執行個體。Initializes a new instance of the XmlSchemas class.

屬性

Capacity

取得或設定 CollectionBase 可包含的項目數目。Gets or sets the number of elements that the CollectionBase can contain.

(繼承來源 CollectionBase)
Count

取得包含在 CollectionBase 執行個體中的項目數目。Gets the number of elements contained in the CollectionBase instance. 這個屬性無法覆寫。This property cannot be overridden.

(繼承來源 CollectionBase)
InnerList

取得包含 ArrayList 執行個體中之元素清單的 CollectionBaseGets an ArrayList containing the list of elements in the CollectionBase instance.

(繼承來源 CollectionBase)
IsCompiled

取得值,指出是否已編譯結構描述。Gets a value that indicates whether the schemas have been compiled.

Item[Int32]

取得或設定在指定索引處的 XmlSchema 物件。Gets or sets the XmlSchema object at the specified index.

Item[String]

取得指定的 XmlSchema 物件,表示與指定命名空間相關聯的 XML 結構描述。Gets a specified XmlSchema object that represents the XML schema associated with the specified namespace.

List

取得包含 IList 執行個體中之元素清單的 CollectionBaseGets an IList containing the list of elements in the CollectionBase instance.

(繼承來源 CollectionBase)

方法

Add(XmlSchema)

將物件加入至集合的結尾。Adds an object to the end of the collection.

Add(XmlSchema, Uri)

將表示組件參考的 XmlSchema 物件加入集合。Adds an XmlSchema object that represents an assembly reference to the collection.

Add(XmlSchemas)

XmlSchemas 類別的執行個體加入集合結尾。Adds an instance of the XmlSchemas class to the end of the collection.

AddReference(XmlSchema)

將表示組件參考的 XmlSchema 物件加入集合。Adds an XmlSchema object that represents an assembly reference to the collection.

Clear()

CollectionBase 執行個體移除所有的物件。Removes all objects from the CollectionBase instance. 無法覆寫這個方法。This method cannot be overridden.

(繼承來源 CollectionBase)
Compile(ValidationEventHandler, Boolean)

處理 XML 結構描述中的項目和屬性名稱,並選擇性地驗證 XML 結構描述。Processes the element and attribute names in the XML schemas and, optionally, validates the XML schemas.

Contains(String)

傳回數值,指出集合是否包含屬於指定命名空間的 XmlSchema 物件。Returns a value that indicates whether the collection contains an XmlSchema object that belongs to the specified namespace.

Contains(XmlSchema)

判斷 XmlSchemas 是否包含特定結構描述。Determines whether the XmlSchemas contains a specific schema.

CopyTo(XmlSchema[], Int32)

從目標陣列的指定索引開始,複製整個 XmlSchemas 至相容一維 ArrayCopies the entire XmlSchemas to a compatible one-dimensional Array, which starts at the specified index of the target array.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Find(XmlQualifiedName, Type)

在其中一個 XML 結構描述中,尋找指定名稱和型別的 XmlSchemaObjectLocates in one of the XML schemas an XmlSchemaObject of the specified name and type.

GetEnumerator()

傳回可逐一查看 CollectionBase 執行個體的列舉值。Returns an enumerator that iterates through the CollectionBase instance.

(繼承來源 CollectionBase)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetSchemas(String)

取得屬於同一命名空間的結構描述集合。Gets a collection of schemas that belong to the same namespace.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(XmlSchema)

搜尋指定的結構描述,並傳回整個 XmlSchemas 內,第一個找到機構描述之以零起始的索引。Searches for the specified schema and returns the zero-based index of the first occurrence within the entire XmlSchemas.

Insert(Int32, XmlSchema)

將結構描述插入指定索引位置的 XmlSchemasInserts a schema into the XmlSchemas at the specified index.

IsDataSet(XmlSchema)

靜態方法,判斷指定的 XML 結構描述是否包含設為 IsDataSet 或其相等值的 true 屬性。Static method that determines whether the specified XML schema contains a custom IsDataSet attribute set to true, or its equivalent.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnClear()

當清除 XmlSchemas 執行個體的內容時,執行額外的自訂處理序。Performs additional custom processes when clearing the contents of the XmlSchemas instance.

OnClearComplete()

在清除 CollectionBase 執行個體的內容後,執行額外的自訂處理序。Performs additional custom processes after clearing the contents of the CollectionBase instance.

(繼承來源 CollectionBase)
OnInsert(Int32, Object)

在將新的元素插入至 XmlSchemas 執行個體前,執行額外的自訂處理序。Performs additional custom processes before inserting a new element into the XmlSchemas instance.

OnInsertComplete(Int32, Object)

在將新的元素插入至 CollectionBase 執行個體後,執行額外的自訂處理序。Performs additional custom processes after inserting a new element into the CollectionBase instance.

(繼承來源 CollectionBase)
OnRemove(Int32, Object)

當從 XmlSchemas 執行個體移除元素時,執行額外的自訂處理序。Performs additional custom processes when removing an element from the XmlSchemas instance.

OnRemoveComplete(Int32, Object)

在從 CollectionBase 執行個體移除元素後,執行額外的自訂處理序。Performs additional custom processes after removing an element from the CollectionBase instance.

(繼承來源 CollectionBase)
OnSet(Int32, Object, Object)

XmlSchemas 執行個體中設定數值前,執行額外的自訂處理序。Performs additional custom processes before setting a value in the XmlSchemas instance.

OnSetComplete(Int32, Object, Object)

CollectionBase 執行個體中設定數值後,執行額外的自訂處理序。Performs additional custom processes after setting a value in the CollectionBase instance.

(繼承來源 CollectionBase)
OnValidate(Object)

當驗證數值時,執行額外的自訂處理序。Performs additional custom processes when validating a value.

(繼承來源 CollectionBase)
Remove(XmlSchema)

移除 XmlSchemas 中第一個出現的特定結構描述。Removes the first occurrence of a specific schema from the XmlSchemas.

RemoveAt(Int32)

移除 CollectionBase 執行個體之指定索引的元素。Removes the element at the specified index of the CollectionBase instance. 這個方法不可覆寫。This method is not overridable.

(繼承來源 CollectionBase)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 CollectionBase 複製到相容的一維 ArrayCopies the entire CollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(繼承來源 CollectionBase)
ICollection.IsSynchronized

取得值,這個值表示對 CollectionBase 的存取是否同步 (安全執行緒)。Gets a value indicating whether access to the CollectionBase is synchronized (thread safe).

(繼承來源 CollectionBase)
ICollection.SyncRoot

取得可用以同步存取 CollectionBase 的物件。Gets an object that can be used to synchronize access to the CollectionBase.

(繼承來源 CollectionBase)
IEnumerable<XmlSchema>.GetEnumerator()

傳回列舉值,這個列舉值會逐一查看 XML 結構描述的集合。Returns an enumerator that iterates through the collection of XML schemas.

IList.Add(Object)

將物件加入至 CollectionBase 的末端。Adds an object to the end of the CollectionBase.

(繼承來源 CollectionBase)
IList.Contains(Object)

判斷 CollectionBase 是否含有特定元素。Determines whether the CollectionBase contains a specific element.

(繼承來源 CollectionBase)
IList.IndexOf(Object)

搜尋指定的 Object,並傳回在整個 CollectionBase 中第一個符合項目之以零為起始的索引。Searches for the specified Object and returns the zero-based index of the first occurrence within the entire CollectionBase.

(繼承來源 CollectionBase)
IList.Insert(Int32, Object)

將項目插入至 CollectionBase 中指定的索引位置。Inserts an element into the CollectionBase at the specified index.

(繼承來源 CollectionBase)
IList.IsFixedSize

取得值,指出 CollectionBase 是否有固定的大小。Gets a value indicating whether the CollectionBase has a fixed size.

(繼承來源 CollectionBase)
IList.IsReadOnly

取得值,指出 CollectionBase 是否唯讀。Gets a value indicating whether the CollectionBase is read-only.

(繼承來源 CollectionBase)
IList.Item[Int32]

在指定的索引位置上取得或設定項目。Gets or sets the element at the specified index.

(繼承來源 CollectionBase)
IList.Remove(Object)

CollectionBase 移除特定物件之第一個符合的元素。Removes the first occurrence of a specific object from the CollectionBase.

(繼承來源 CollectionBase)

擴充方法

CopyToDataTable<T>(IEnumerable<T>)

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 IEnumerable<T> 物件複本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 IEnumerable<T> 物件複製到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

傳回包含來源集合中每個節點祖系的項目集合。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

傳回包含來源集合中每個節點祖系的已篩選項目集合。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目之子代節點的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

傳回包含來源集合中每個項目和文件之子代項目的項目集合。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

傳回已篩選的項目集合,其中包含來源集合中每個項目和文件的子代項目。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

傳回來源集合中每個項目和文件的子項目集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

傳回來源集合中每個項目和文件的已篩選子項目集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中只會包含具有相符之 XName 的項目。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

傳回包含來源集合中所有節點的節點集合,依據文件順序來排序。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

傳回來源集合中每個文件和項目的子節點集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

在來源集合中,從每一個節點的父節點移除這些節點。Removes every node in the source collection from its parent node.

適用於