BsonTrieTValueTryGetValue Method (ArraySegmentByte, TValue) |
Gets the value associated with the specified element name.
Namespace:
MongoDB.Bson.IO
Assembly:
MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public bool TryGetValue(
ArraySegment<byte> utf8,
out TValue value
)
Public Function TryGetValue (
utf8 As ArraySegment(Of Byte),
<OutAttribute> ByRef value As TValue
) As Boolean
member TryGetValue :
utf8 : ArraySegment<byte> *
value : 'TValue byref -> bool
Parameters
- utf8
- Type: SystemArraySegmentByte
The element name. - value
- Type: TValue
When this method returns, contains the value associated with the specified element name, if the key is found;
otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
Type:
BooleanTrue if the value was found; otherwise, false.
See Also