ActivityDelegate ActivityDelegate ActivityDelegate ActivityDelegate Class

Definition

Represents an activity-based callback.

public ref class ActivityDelegate abstract
[System.Windows.Markup.ContentProperty("Handler")]
public abstract class ActivityDelegate
type ActivityDelegate = class
Public MustInherit Class ActivityDelegate
Inheritance
ActivityDelegateActivityDelegateActivityDelegateActivityDelegate
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() ActivityDelegate() ActivityDelegate() ActivityDelegate()

Called by derived class constructors to initialize the object.

Properties

DisplayName DisplayName DisplayName DisplayName

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

Handler Handler Handler Handler

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

Methods

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

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetResultArgument() GetResultArgument() GetResultArgument() GetResultArgument()

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

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

Gets the Type of the current instance.

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

Creates a shallow copy of the current Object.

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

Supplies a list of runtime arguments for the ActivityDelegate.

ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName() ShouldSerializeDisplayName()

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

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

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

Applies to