Click or drag to resize

IExportProviderTryGetExportedValueT Method

Tries to the get exported value.

Namespace:  TomsToolbox.Composition
Assembly:  TomsToolbox.Composition (in TomsToolbox.Composition.dll)
Syntax
bool TryGetExportedValue<T>(
	string? contractName,
	out T? value
)
where T : class

Parameters

contractName
Type: SystemString
Name of the contract.
value
Type: T
The value.

Type Parameters

T
The type of the object.

Return Value

Type: Boolean
true if the value exists.
See Also