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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.