ContextItemManager Class

Definition

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)
Inheritance
ContextItemManager
Implements

Remarks

Each ContextItem contained in the ContextItemManager represents a piece of transient state in a WorkflowDesigner.

Constructors

ContextItemManager()

Initiates a new instance of the ContextItemManager class.

Methods

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.

(Inherited from 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.

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

Gets the Type of the current instance.

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

Creates a shallow copy of the current Object.

(Inherited from Object)
NotifyItemChanged(EditingContext, ContextItem, 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()

Returns a string that represents the current object.

(Inherited from Object)
Unsubscribe(Type, SubscribeContextCallback)

When overridden in a derived class, removes a subscription.

Unsubscribe<TContextItemType>(SubscribeContextCallback<TContextItemType>)

Removes a subscription.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Enumerates the context items in the editing context.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

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

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

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts 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. 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. 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. 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.

Applies to