NativeActivityMetadata.AddDelegate Method

Definition

Adds the specified delegate to the metadata's list of delegates.

Overloads

AddDelegate(ActivityDelegate)

Adds the specified delegate to the metadata's list of delegates.

AddDelegate(ActivityDelegate, Object)

Adds the specified delegate to the metadata's list of delegates.

AddDelegate(ActivityDelegate)

Adds the specified delegate to the metadata's list of delegates.

C#
public void AddDelegate(System.Activities.ActivityDelegate activityDelegate);

Parameters

activityDelegate
ActivityDelegate

The delegate to add.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

AddDelegate(ActivityDelegate, Object)

Adds the specified delegate to the metadata's list of delegates.

C#
public void AddDelegate(System.Activities.ActivityDelegate activityDelegate, object origin);

Parameters

activityDelegate
ActivityDelegate

The delegate to add.

origin
Object

The origin of the delegate.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1