DictField.configurationKeyId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the ID of the configuration key for the field.
public:
virtual int configurationKeyId();
public virtual int configurationKeyId ();
abstract member configurationKeyId : unit -> int
override this.configurationKeyId : unit -> int
Public Overridable Function configurationKeyId () As Integer
Returns
The ID of the configuration key for the field; 0 (zero) if there is no configuration key for the field.
Remarks
The following example shows the retrieval of the configuration key ID and the configuration key name for a field.
DictField df;
configurationKeyId cki;
DictConfigurationKey dck;
df = new DictField(tablenum(BankAccountTable), fieldnum(BankAccountTable, CustPaymFeePost));
if (df)
{
cki = df.configurationKeyId();
// print df.helpDefined();
if (0 != cki)
{
dck = new DictConfigurationKey(cki);
if (dck)
print strfmt("The configuration key is %1.", dck.name());
}
else
{
print "No configuration key";
}
}