| ScopeContextTryGetProperty Method |
Lookup single property stored within the logical context scopes
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public 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 true when value is found with the specified key
Remarks Scope dictionary keys are case-insensitive
See Also