Finds a contained data object with a given tag.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Function Find( _ 
ByVal nTag As Integer, _ 
ByVal fRecurse As Boolean
) As CardDataObject
This language is not supported or no code example is available.
public CardDataObject Find( 
int nTag
bool fRecurse 
)
This language is not supported or no code example is available.
public:  
CardDataObject^ Find( 
int nTag
bool fRecurse 
)
This language is not supported or no code example is available.
public function Find( 
nTag : int
fRecurse : boolean 
) : CardDataObject;
This language is not supported or no code example is available.

Parameters

nTag
Type: int

Complete tag to find.

fRecurse
Type: bool

If true, then any contained data objects are checked.

Return Value

Type: CardDataObject

If the sought data object was found, then it is wrapped with a new instance of this class and returned to the caller. If the data object was not found, then null is returned.

Exception type Condition

InvalidOperationException

Thrown when the requested operation is invalid.

Calling this method implies that this data object is a constructed data object that contains other data objects. If it is not constructed, then an InvalidOperationException will be thrown.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0