| RichTextBoxTargetGetTargetByControl Method (RichTextBox, LoggingConfiguration) |
Returns a target attached to a given RichTextBox control
Namespace:
NLog.Windows.Forms
Assembly:
NLog.Windows.Forms (in NLog.Windows.Forms.dll) Version: 5.2.3+a6f5d4397ec11371a92ffd5b29f2da9844f01c95
Syntax public static RichTextBoxTarget GetTargetByControl(
RichTextBox control,
LoggingConfiguration configuration
)
Public Shared Function GetTargetByControl (
control As RichTextBox,
configuration As LoggingConfiguration
) As RichTextBoxTarget
Dim control As RichTextBox
Dim configuration As LoggingConfiguration
Dim returnValue As RichTextBoxTarget
returnValue = RichTextBoxTarget.GetTargetByControl(control,
configuration)
static member GetTargetByControl :
control : RichTextBox *
configuration : LoggingConfiguration -> RichTextBoxTarget
Parameters
- control
- Type: System.Windows.FormsRichTextBox
a RichTextBox control for which the target is to be returned - configuration
- Type: NLog.ConfigLoggingConfiguration
NLog's configuration. null is not allowed
Return Value
Type:
RichTextBoxTargetA RichTextBoxTarget attached to a given control or
if no target is attached
See Also