| LoggingConfigurationFindTargetByNameTTarget Method (String) |
Finds the target with the specified name and specified type.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public TTarget FindTargetByName<TTarget>(
string name
)
where TTarget : Target
Public Function FindTargetByName(Of TTarget As Target) (
name As String
) As TTarget
Dim instance As LoggingConfiguration
Dim name As String
Dim returnValue As TTarget
returnValue = instance.FindTargetByName(name)
member FindTargetByName :
name : string -> 'TTarget when '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
TTargetSee Also