ActivityMetadata.AddDefaultExtensionProvider<T>(Func<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 is evaluated to provide one.
Applies to
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.