Click or drag to resize

INamedItemFactoryTInstanceType, TDefinitionTypeTryCreateInstance Method

Tries to create an item instance.

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax
bool TryCreateInstance(
	string itemName,
	out TInstanceType result
)

Parameters

itemName
Type: SystemString
Name of the item.
result
Type: TInstanceType
The result.

Return Value

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