Partilhar via


DictTable.Securitykeyid Method

Definition

Returns the ID of the security key for the table.

public:
 virtual int Securitykeyid();
public virtual int Securitykeyid ();
abstract member Securitykeyid : unit -> int
override this.Securitykeyid : unit -> int
Public Overridable Function Securitykeyid () As Integer

Returns

The ID of the security key for the table; 0 (zero) if there is no security key for the table.

Remarks

The following example shows the retrieval of the security key ID for a table.

DictTable dt; 
DictSecurityKey dsk; 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    if (0 != dt.securityKeyId()) 
    dsk = new DictSecurityKey(dt.securityKeyId()); 
    if (dsk) 
    { 
        print (strfmt("The table's security key is %1.", dsk.name())); 
    } 
}

Applies to