A Sandcastle Documented Class Library
![]() | TagManagerGetOrAdd Method (String, FuncString, Tag, Boolean) |
Gets the tag by looking it up from its EPC or by creating it if it is not known.
Namespace: Tego.Rfid.Gen2
Assembly: Tego (in Tego.dll) Version: 1.0.6599.21663 (1.2017.413.1)

public Tag GetOrAdd( string epc, Func<string, Tag> createTag, out bool tagWasCreated )
Public Function GetOrAdd ( epc As String, createTag As Func(Of String, Tag), <OutAttribute> ByRef tagWasCreated As Boolean ) As Tag
public: virtual Tag^ GetOrAdd( String^ epc, Func<String^, Tag^>^ createTag, [OutAttribute] bool% tagWasCreated ) sealed
abstract GetOrAdd : epc : string * createTag : Func<string, Tag> * tagWasCreated : bool byref -> Tag override GetOrAdd : epc : string * createTag : Func<string, Tag> * tagWasCreated : bool byref -> Tag
Parameters
- epc
- Type: SystemString
EPC of tag being got. - createTag
- Type: SystemFuncString, Tag
Function used to create tag if it does not exist. - tagWasCreated
- Type: SystemBoolean
Out parameter will be true if the tag was created by this call.
Return Value
Type: TagTag object.
Implements
ITagManagerGetOrAdd(String, FuncString, Tag, Boolean)