CodeActivityMetadata.AddDefaultExtensionProvider<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.