A Sandcastle Documented Class Library
![]() | ITagManagerGetOrAdd 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)

Tag GetOrAdd( string epc, Func<string, Tag> createTag, out bool tagWasCreated )
Function GetOrAdd ( epc As String, createTag As Func(Of String, Tag), <OutAttribute> ByRef tagWasCreated As Boolean ) As Tag
Tag^ GetOrAdd( String^ epc, Func<String^, Tag^>^ createTag, [OutAttribute] bool% tagWasCreated )
abstract 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.
