Click or drag to resize

INamedItemFactoryTInstanceType, TDefinitionTypeTryGetDefinition Method

Tries to get registered item definition.

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

Parameters

itemName
Type: SystemString
Name of the item.
result
Type: TDefinitionType
Reference to a variable which will store the item definition.

Return Value

Type: Boolean
Item definition.
See Also