GetData Method
GetData()
Gets the number of PIN or PUK retries remaining, if applicable.
C#
public Nullable<int> GetData()
Returns
System.Nullable<System.Int32>
null
if the PIN/PUK was successfully changed, or the
number of retries remaining if the current PIN/PUK did not verify.
Implements
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown if Status is not Success or AuthenticationRequired. |
Remarks
First look at the Status. If
Status
is not one of the following values then an error
has occurred and GetData
will throw an exception.
Status | Description |
---|---|
Success | The PIN or PUK was successfully changed. GetData returns
null . |
AuthenticationRequired | The PIN or PUK did not verify. GetData returns the number of retries remaining. If the number of retries is 0, the PIN or PUK is blocked. |