NurApiTagGetKillPassword Method

Get kill password from tag

Definition

Namespace: NurApiDotNet
Assembly: NordicID.NurApi.Net (in NordicID.NurApi.Net.dll) Version: 4.0.0
C#
public uint GetKillPassword(
	uint passwd,
	bool secured
)

Parameters

passwd  UInt32
Current access password
secured  Boolean
Set true if secured

Return Value

UInt32
Kill password

Example

Assuming the tag's password is protected in whole by the access password, here's how to read the current kill password:

C#
// Note: needs to have try-catch.
uint GetCurrentKillPassword(NurApi.Tag aTag, uint accessPwd)
{
    // Can throw NurApiException.
    return aTag.GetKillPassword(accessPwd, true);
}

See Also