Bewerken

Delen via


CodeActivityMetadata.AddDefaultExtensionProvider<T> Method

Definition

Adds the specified extension provider to the collection of default extension providers for the activity.

public:
generic <typename T>
 where T : class void AddDefaultExtensionProvider(Func<T> ^ extensionProvider);
public void AddDefaultExtensionProvider<T> (Func<T> extensionProvider) where T : class;
member this.AddDefaultExtensionProvider : Func<'T (requires 'T : null)> -> unit (requires 'T : null)
Public Sub AddDefaultExtensionProvider(Of T As Class) (extensionProvider As Func(Of T))

Type Parameters

T

The type of the extension provider.

Parameters

extensionProvider
Func<T>

The function that returns the extension.

Remarks

If the host does not provide an extension of type T, then this extension provider function is evaluated to provide one.

Applies to