 | LoggingConfigurationFindTargetByNameTTarget Method (String) |
Finds the target with the specified name and specified type.
Namespace: NLog.ConfigAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntaxpublic TTarget FindTargetByName<TTarget>(
string name
)
where TTarget : Target
Public Function FindTargetByName(Of TTarget As Target) (
name As String
) As TTarget
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