Click or drag to resize

LoggingConfigurationFindTargetByNameTTarget Method (String)

Finds the target with the specified name and specified type.

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public TTarget FindTargetByName<TTarget>(
	string name
)
where TTarget : Target

Parameters

name
Type: SystemString
The name of the target to be found.

Type Parameters

TTarget
Type of the target

Return Value

Type: TTarget
Found target or when the target is not found of not of type TTarget
See Also