Click or drag to resize

IFactoryTBaseTypeTryCreateInstance Method

Tries to create an item instance with type-alias

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
bool TryCreateInstance(
	string typeAlias,
	out TBaseType result
)

Parameters

typeAlias
Type: SystemString
result
Type: TBaseType

Return Value

Type: Boolean
True if instance was created successfully, false otherwise.
See Also