 | ScopeContextTryGetProperty Method |
Lookup single property stored within the logical context scopes
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static bool TryGetProperty(
string key,
out Object?? value
)
Public Shared Function TryGetProperty (
key As String,
<OutAttribute> ByRef value As Object
) As Boolean
Dim key As String
Dim value As Object
Dim returnValue As Boolean
returnValue = ScopeContext.TryGetProperty(key,
value)
static member TryGetProperty :
key : string *
value : Object byref -> bool
Parameters
- key
- Type: SystemString
Name of property - value
- Type: SystemObject
When this method returns, contains the value associated with the specified key
Return Value
Type:
BooleanReturns
when value is found with the specified key
RemarksScope dictionary keys are case-insensitive
See Also