Partilhar via


FormComboBoxControl.securityKey Method

Definition

Overloads

securityKey(Int32)
securityKey()

Sets or returns the ID of the security key for the control.

securityKey(Int32)

public:
 override int securityKey(int _value);
public override int securityKey (int _value);
override this.securityKey : int -> int
Public Overrides Function securityKey (_value As Integer) As Integer

Parameters

_value
Int32

The ID of the security key to assign to the control; optional.

Returns

Applies to

securityKey()

Sets or returns the ID of the security key for the control.

public:
 override int securityKey();
public override int securityKey ();
override this.securityKey : unit -> int
Public Overrides Function securityKey () As Integer

Returns

The ID of the security key for the control; 0 (zero) if no security key is assigned to the control.

Remarks

The following example shows the retrieval and assignment of a security key ID for a control.

DictSecurityKey dsk; 
securityKeyId ski; 
; 
// objCtrl previously assigned. 
// Assign a security key ID to the control. 
objCtrl.securityKey(securitykeynum(AdminDaily)); 
// Retrieve the security key ID from the control. 
ski = objCtrl.securityKey(); 
if (ski != 0) 
{ 
    dsk = new DictSecurityKey(ski); 
    if (dsk) 
    { 
        print strfmt("Security Key ID: %1 Security Key Name: %2", 
                     ski, 
                     dsk.name()); 
    } 
}

Applies to