[This is preliminary documentation and is subject to change.]

Searches for payloads with keys that start with keyPart, returning just one or none of the matches.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)

Syntax

   
 C# 
public bool GetOneMatch(
	string keyPart,
	out T payload
)

Parameters

keyPart
String
Partial or full key.
payload
T%
Payload object to output (will be set to null if no single match was found).

Return Value

If no matches were found, returns true and sets payload to null. If one match was found, returns true and sets payload to the value. If more than one match was found, returns false and sets payload to null.

See Also