pcsc-sharp : PCSC Namespace

CardInsertedEvent Delegate

A new card has been inserted.

public delegate void CardInsertedEvent (object sender, CardStatusEventArgs e)

Parameters

sender
The PCSC.SCardMonitor sender object.
e
Reader status information.

Remarks

C# Example
// Create a monitor object with its own PC/SC context.
SCardMonitor monitor = new SCardMonitor(
	new SCardContext(),
	SCardScope.System);

// Point the callback function(s) to the pre-defined method MyCardInsertedMethod.
monitor.CardInserted += new CardInsertedEvent(MyCardInsertedMethod);

// Start to monitor the reader
monitor.Start("OMNIKEY CardMan 5x21 00 01");
  

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1