| ConfigurationItemCreator Delegate |
Note: This API is now obsolete.
Obsolete since dynamic tyope loading is not compatible with publish as trimmed application.
Constructs a new instance the configuration item (target, layout, layout renderer, etc.) given its type.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax [ObsoleteAttribute("Instead use RegisterType<T>, as dynamic Assembly loading will be moved out. Marked obsolete with NLog v5.2")]
public delegate Object ConfigurationItemCreator(
Type itemType
)
<ObsoleteAttribute("Instead use RegisterType<T>, as dynamic Assembly loading will be moved out. Marked obsolete with NLog v5.2")>
Public Delegate Function ConfigurationItemCreator (
itemType As Type
) As Object
Dim instance As New ConfigurationItemCreator(AddressOf HandlerMethod)
[<ObsoleteAttribute("Instead use RegisterType<T>, as dynamic Assembly loading will be moved out. Marked obsolete with NLog v5.2")>]
type ConfigurationItemCreator =
delegate of
itemType : Type -> Object
Parameters
- itemType
- Type: SystemType
Type of the item.
Return Value
Type:
ObjectCreated object of the specified type.
See Also