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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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