ContextItemManager ContextItemManager ContextItemManager ContextItemManager Class

定義

代表維持一組已發行到設計工具編輯內容中之內容項目的類別。Represents a class that maintains a set of context items published into the designer editing context. 這個類別是抽象的。This class is abstract.

public ref class ContextItemManager abstract : System::Collections::Generic::IEnumerable<System::Activities::Presentation::ContextItem ^>
public abstract class ContextItemManager : System.Collections.Generic.IEnumerable<System.Activities.Presentation.ContextItem>
type ContextItemManager = class
    interface seq<ContextItem>
    interface IEnumerable
Public MustInherit Class ContextItemManager
Implements IEnumerable(Of ContextItem)
繼承
ContextItemManagerContextItemManagerContextItemManagerContextItemManager
實作

備註

ContextItem 中包含的每個 ContextItemManager 均代表 WorkflowDesigner 中的一段暫時性狀態。Each ContextItem contained in the ContextItemManager represents a piece of transient state in a WorkflowDesigner.

建構函式

ContextItemManager() ContextItemManager() ContextItemManager() ContextItemManager()

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

方法

Contains(Type) Contains(Type) Contains(Type) Contains(Type)

在衍生類別中遭覆寫時,會傳回值以指出項目管理員是否包含指定型別的項目。When overridden in a derived class, returns a value that indicates whether the item manager contains an item of the specified type.

Contains<TItemType>() Contains<TItemType>() Contains<TItemType>() Contains<TItemType>()

傳回值,這個值表示項目管理員是否包含指定型別的項目。Returns a value that indicates whether the item manager contains an item of the specified type.

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

在衍生類別中遭覆寫時,會列舉編輯內容中的內容項目。When overridden in a derived class, enumerates the context items in the editing context. 除非列舉達到隔離層,否則這個列舉會包含之前的各層。This enumeration includes prior layers unless the enumerator hits an isolated layer.

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

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

(Inherited from Object)
GetTarget(Delegate) GetTarget(Delegate) GetTarget(Delegate) GetTarget(Delegate)

代表傳回委派之目標物件的 Helper 方法。Represents a helper method that returns the target object for a delegate. 如果建立委派的目的是要進行泛型委派設定 Proxy,則這個方法會傳回原始物件,而非 Proxy。If the delegate was created to proxy a generic delegate, this method returns the original object, not the proxy.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
GetValue(Type) GetValue(Type) GetValue(Type) GetValue(Type)

在衍生類別中遭覆寫時,會傳回要求之項目型別的執行個體。When overridden in a derived class, returns an instance of the requested item type. 如果沒有指定型別的內容項目,就會建立空的項目。If there is no context item with the given type, an empty item will be created.

GetValue<TItemType>() GetValue<TItemType>() GetValue<TItemType>() GetValue<TItemType>()

傳回要求之項目型別的執行個體。Returns an instance of the requested item type. 如果沒有指定型別的內容項目,就會建立空的項目。If there is no context item with the given type, an empty item will be created.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
NotifyItemChanged(EditingContext, ContextItem, ContextItem) NotifyItemChanged(EditingContext, ContextItem, ContextItem) NotifyItemChanged(EditingContext, ContextItem, ContextItem) NotifyItemChanged(EditingContext, ContextItem, ContextItem)

代表 Helper 方法,這個方法會叫用受保護的 OnItemChanged(EditingContext, ContextItem) 方法。Represents a helper method that invokes the protected OnItemChanged(EditingContext, ContextItem) method.

RemoveCallback(Delegate, Delegate) RemoveCallback(Delegate, Delegate) RemoveCallback(Delegate, Delegate) RemoveCallback(Delegate, Delegate)

代表 Helper 方法,這個方法會執行委派移除,也會取消包裝泛型回呼 Proxy 的委派。Represents a helper method that performs delegate removals and that unwraps delegates that are proxies to generic callbacks.

SetValue(ContextItem) SetValue(ContextItem) SetValue(ContextItem) SetValue(ContextItem)

在衍生類別中遭覆寫時,會將內容項目設定為指定的值。When overridden in a derived class, sets a context item to the specified value.

Subscribe(Type, SubscribeContextCallback) Subscribe(Type, SubscribeContextCallback) Subscribe(Type, SubscribeContextCallback) Subscribe(Type, SubscribeContextCallback)

在衍生類別中遭覆寫時,會加入當指定之項目型別的內容項目變更時,所叫用的事件回呼。When overridden in a derived class, adds an event callback that is invoked when a context item of the specified item type changes.

Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Subscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

加入當指定之項目型別的內容項目變更時,所叫用的事件回呼。Adds an event callback that is invoked when a context item of the specified item type changes.

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

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

(Inherited from Object)
Unsubscribe(Type, SubscribeContextCallback) Unsubscribe(Type, SubscribeContextCallback) Unsubscribe(Type, SubscribeContextCallback) Unsubscribe(Type, SubscribeContextCallback)

在衍生類別中遭覆寫時,會移除訂閱。When overridden in a derived class, removes a subscription.

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>) Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

移除訂閱。Removes a subscription.

明確介面實作

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

列舉編輯內容中的內容項目。Enumerates the context items in the editing context.

擴充方法

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) 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) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) 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) 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)

IEnumerable 轉換成 IQueryableConverts 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.

適用於