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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.