ContextItemManager 类

定义

表示一个类,该类维护一组发布到设计器编辑上下文中的上下文项。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)
继承
ContextItemManager
实现

注解

ContextItem 中包含的每个 ContextItemManager 都表示 WorkflowDesigner 中的一条暂时状态。Each ContextItem contained in the ContextItemManager represents a piece of transient state in a WorkflowDesigner.

构造函数

ContextItemManager()

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

方法

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

返回一个值,该值指示项管理器是否包含指定类型的项。Returns a value that indicates whether the item manager contains an item of the specified type.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
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()

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

(继承自 Object)
GetTarget(Delegate)

表示一个可返回委托的目标对象的帮助器方法。Represents a helper method that returns the target object for a delegate. 如果创建了委托作为泛型委托的代理,则此方法将返回原始对象,而不是代理。If the delegate was created to proxy a generic delegate, this method returns the original object, not the proxy.

GetType()

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

(继承自 Object)
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>()

返回所请求的项类型的实例。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()

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

(继承自 Object)
NotifyItemChanged(EditingContext, ContextItem, ContextItem)

表示一个帮助器方法,该方法调用受保护的 OnItemChanged(EditingContext, ContextItem) 方法。Represents a helper method that invokes the protected OnItemChanged(EditingContext, ContextItem) method.

RemoveCallback(Delegate, Delegate)

表示一个帮助器方法,该方法执行委托移除,并对作为泛型回调代理的委托进行解包。Represents a helper method that performs delegate removals and that unwraps delegates that are proxies to generic callbacks.

SetValue(ContextItem)

在派生类中重写时,将一个上下文项设置为指定值。When overridden in a derived class, sets a context item to the specified value.

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

添加一个将在指定项类型的上下文项发生更改时进行调用的事件回调。Adds an event callback that is invoked when a context item of the specified item type changes.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)
Unsubscribe(Type, SubscribeContextCallback)

在派生类中重写时,移除一个订阅。When overridden in a derived class, removes a subscription.

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

移除一个订阅。Removes a subscription.

显式界面实现

IEnumerable.GetEnumerator()

枚举编辑上下文中的上下文项。Enumerates the context items in the editing context.

扩展方法

CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 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.

适用于