 | LoggingConfigurationRemoveRuleByName Method |
Removes the specified named logging rule with matching
RuleName
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic bool RemoveRuleByName(
string ruleName
)
Public Function RemoveRuleByName (
ruleName As String
) As Boolean
Dim instance As LoggingConfiguration
Dim ruleName As String
Dim returnValue As Boolean
returnValue = instance.RemoveRuleByName(ruleName)
member RemoveRuleByName :
ruleName : string -> bool
Parameters
- ruleName
- Type: SystemString
The name of the logging rule to be removed.
Return Value
Type:
BooleanFound one or more logging rule to remove, or
when not found.
See Also