ITagManager.GetOrAdd Method (String, Func(String, Tag))

TegoOS

ITagManagerGetOrAdd Method (String, FuncString, Tag)
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)
Syntax
Tag GetOrAdd(
	string epc,
	Func<string, Tag> createTag
)
Function GetOrAdd ( 
	epc As String,
	createTag As Func(Of String, Tag)
) As Tag
Tag^ GetOrAdd(
	String^ epc, 
	Func<String^, Tag^>^ createTag
)
abstract GetOrAdd : 
        epc : string * 
        createTag : Func<string, Tag> -> Tag 

Parameters

epc
Type: SystemString
EPC of tag being got.
createTag
Type: SystemFuncString, Tag
Function used to create tag if it does not exist.

Return Value

Type: Tag
Tag.
See Also