Muokkaa

Jaa


ActivityDelegate Class

Definition

Represents an activity-based callback.

public ref class ActivityDelegate abstract
[System.Windows.Markup.ContentProperty("Handler")]
public abstract class ActivityDelegate
[<System.Windows.Markup.ContentProperty("Handler")>]
type ActivityDelegate = class
Public MustInherit Class ActivityDelegate
Inheritance
ActivityDelegate
Derived
Attributes

Remarks

Activity delegates enable activity authors to expose callbacks with specific signatures that users of the activity can provide activity-based handlers for. There are two types of activity delegates: ActivityAction<T> is used for invoking activities that do not have a return value, and ActivityFunc<TResult> is used for invoking activities that do have a return value. Activity delegates are useful in scenarios where a child activity must be constrained to having a certain signature.

Constructors

ActivityDelegate()

Called by derived class constructors to initialize the object.

Properties

DisplayName

Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

Handler

Gets or sets the activity that is represented by this ActivityDelegate.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetResultArgument()

When implemented in a derived class, returns the DelegateOutArgument of the ActivityDelegate.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnGetRuntimeDelegateArguments(IList<RuntimeDelegateArgument>)

Supplies a list of runtime arguments for the ActivityDelegate.

ShouldSerializeDisplayName()

Indicates whether the DisplayName property value should be serialized to XAML.

ToString()

Returns a String representation of the ActivityDelegate that contains the DisplayName.

Applies to