SecurityServices for .NET 2.0 Documentation

SmartcardReader.Connect Method (SmartcardShare, SmartcardProtocols)

[This is preliminary documentation and subject to change.]

Connects to the card in the smartcard reader.

public void Connect(
   SmartcardShare share,
   SmartcardProtocols protocol
);

Parameters

SmartcardShare
A flag that indicates whether other applications may form connections to the card.
SmartcardProtocols
A bit mask of acceptable protocols for the connection. Possible values may be combined with the OR operation.

Exceptions

Exception Type Condition
ObjectDisposedException The SmartcardReader has been closed.
SmartcardException An error occurred while communication with the smartcard reader.

See Also

SmartcardReader Class | Org.Mentalis.SecurityServices.Smartcard Namespace | SmartcardReader.Connect Overload List