SymbolResolver SymbolResolver SymbolResolver SymbolResolver Class

定義

SymbolResolver 是一種擴充,用於提供主機 LocationReferenceEnvironment,當中包含可依字串名稱取值的物件。SymbolResolver is an extension for providing a host LocationReferenceEnvironment containing objects that can be dereferenced by a string name. 透過 SymbolResolver 提供的值不會保存下來。Values provided through a SymbolResolver are not persisted. SymbolResolver 值的保存是由主機負責的。Persistence of SymbolResolver values is a host responsibility.

public ref class SymbolResolver sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public sealed class SymbolResolver : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type SymbolResolver = class
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
Public NotInheritable Class SymbolResolver
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
繼承
SymbolResolverSymbolResolverSymbolResolverSymbolResolver
實作

建構函式

SymbolResolver() SymbolResolver() SymbolResolver() SymbolResolver()

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

屬性

Count Count Count Count

取得 SymbolResolver 中所包含的符號數。Gets the number of symbols contained in the SymbolResolver.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,這個值表示 SymbolResolver 中的符號字典是否為唯讀。Gets a value that indicates whether the dictionary of symbols in the SymbolResolver is read-only.

Item[String] Item[String] Item[String] Item[String]

取得或設定與指定索引鍵關聯之項目的值。Gets or sets the value of the item associated with the specified key.

Keys Keys Keys Keys

取得 SymbolResolver 中所有索引鍵的集合。Gets a collection of all keys in the SymbolResolver.

Values Values Values Values

取得 SymbolResolver 中所有值的集合。Gets a collection of all values in the SymbolResolver.

方法

Add(KeyValuePair<String,Object>) Add(KeyValuePair<String,Object>) Add(KeyValuePair<String,Object>) Add(KeyValuePair<String,Object>)

使用指定的索引鍵/值組加入符號。Adds a symbol using the specified key/value pair.

Add(String, Object) Add(String, Object) Add(String, Object) Add(String, Object)

使用指定的符號名稱和值加入符號。Adds a symbol using the specified symbol name and value.

Add(String, Object, Type) Add(String, Object, Type) Add(String, Object, Type) Add(String, Object, Type)

使用指定的符號名稱、值和型別加入符號。Adds a symbol using the specified symbol name, value, and type.

Add(String, Type) Add(String, Type) Add(String, Type) Add(String, Type)

使用指定的符號名稱和型別加入符號。Adds a symbol using the specified symbol name and type.

AsLocationReferenceEnvironment() AsLocationReferenceEnvironment() AsLocationReferenceEnvironment() AsLocationReferenceEnvironment()

傳回 LocationReferenceEnvironment 執行個體,此執行個體允許存取 SymbolResolver 中,以 LocationReference 物件表示的符號值參考。Returns a LocationReferenceEnvironment instance that enables access to references of symbol values in SymbolResolver represented as LocationReference objects.

Clear() Clear() Clear() Clear()

移除 SymbolResolver 中的所有符號。Removes all symbols from the SymbolResolver.

Contains(KeyValuePair<String,Object>) Contains(KeyValuePair<String,Object>) Contains(KeyValuePair<String,Object>) Contains(KeyValuePair<String,Object>)

傳回值,這個值表示 SymbolResolver 是否包含指定的符號。Returns a value that indicates whether the SymbolResolver contains the specified symbol.

ContainsKey(String) ContainsKey(String) ContainsKey(String) ContainsKey(String)

傳回值,這個值表示 SymbolResolver 是否包含具有指定索引鍵的符號。Returns a value that indicates whether the SymbolResolver contains a symbol with the specified key.

CopyTo(KeyValuePair<String,Object>[], Int32) CopyTo(KeyValuePair<String,Object>[], Int32) CopyTo(KeyValuePair<String,Object>[], Int32) CopyTo(KeyValuePair<String,Object>[], Int32)

從指定的陣列索引開始,將 SymbolResolver 中的符號複製到現有的一維索引鍵/值組陣列。Copies the symbols in the SymbolResolver to an existing one-dimensional array of key/value pairs, starting at the specified array index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

傳回列舉程式,這個列舉程式會逐一查看索引鍵/值組集合,其中索引鍵為符號名稱,值則為符號值。Returns an enumerator that iterates through a collection of key/value pairs where the keys are the symbol names and values the symbol values.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(KeyValuePair<String,Object>) Remove(KeyValuePair<String,Object>) Remove(KeyValuePair<String,Object>) Remove(KeyValuePair<String,Object>)

SymbolResolver 移除指定的符號。Removes the specified symbol from the SymbolResolver.

Remove(String) Remove(String) Remove(String) Remove(String)

使用指定的索引鍵移除 SymbolResolver 中的符號。Removes a symbol from the SymbolResolver using a specified key.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)
TryGetValue(String, Object) TryGetValue(String, Object) TryGetValue(String, Object) TryGetValue(String, Object)

取得指定索引鍵相關聯的值。Gets the value associated with the specified key.

明確介面實作

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

傳回列舉程式,這個列舉程式會逐一查看索引鍵/值組集合,其中索引鍵為符號名稱,值則為符號值。Returns an enumerator that iterates through a collection of key/value pairs where the keys are the symbol names and values the symbol values.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

傳回DataTable,其中包含副本DataRow物件,指定輸入IEnumerable<T>物件其中泛型參數TDataRowReturns 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) 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) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) 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>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

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

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) 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) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) 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>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) 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) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) 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>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) 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>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

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

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

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

適用於