NativeActivityMetadata.AddDefaultExtensionProvider<T> Method (Func<T>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Activities
Assembly:  System.Activities (in System.Activities.dll)

public void AddDefaultExtensionProvider<T>(
	Func<T> extensionProvider
)
where T : class

Parameters

extensionProvider
Type: System.Func<T>

The function that returns the extension.

Type Parameters

T

The type of the extension provider.

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

.NET Framework
Available since 4.0
Return to top
Show: