KeyCollector Property
KeyCollector
The delegate this class will call when it needs a management key or credential password.
public Func<KeyEntryData, bool> KeyCollector { get; set; }
Property Value
Type | Description |
---|---|
System.Func<KeyEntryData, System.Boolean> |
Remarks
The delegate provided will read the KeyEntryData which
contains the information needed to determine what to collect and
methods to submit what was collected. The delegate will return
true
for success or false
for "cancel". Cancellation
usually happens when the user has clicked a "Cancel" button. That is
often the case when the user has entered the wrong value a number of
times, and they would like to stop trying before the application is
blocked.
Note that the SDK will call the KeyCollector
with a
Request of
Release when the process completes. In
this case, the KeyCollector
MUST NOT throw an exception. The
Release
is called from inside a finally
block, and it
is a bad idea to throw exceptions from inside finally
.