Selects the PC/SC access mode that will be used by the card connection. The default access mode is SHARED unless set otherwise in the registry. It can be changed to EXCLUSIVE by the HKLM\SOFTWARE\Subsembly\SmartCard\SharedAccess key. "1" or no key means SHARED any other value translates to EXCLUSIVE.

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

Public Property AccessMode() As SCardAccessMode
This language is not supported or no code example is available.
public SCardAccessMode AccessMode {get; set;}
This language is not supported or no code example is available.
public:  
property SCardAccessMode AccessMode { 
SCardAccessMode get( ); 
void set( 
SCardAccessMode value 
); 
}
This language is not supported or no code example is available.
public function get AccessMode() : SCardAccessMode
public function set AccessMode(value : SCardAccessMode);
This language is not supported or no code example is available.

Property Value

Type: SCardAccessMode

The access mode.

The default value for this property is derived from the REG_SZ registry value HKLM\SOFTWARE\Subsembly\SmartCard\SharedAccess. If the registry value is "1", then the default AccessMode will be Shared. In any other case the default AccessMode will be Exclusive. Changing this property, however, does not change the registry value.

.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