FormTreeControl.securityKey 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.
Overloads
securityKey() |
Sets or returns the ID of the security key for the control. |
securityKey(Int32) |
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 how to retrieve and assign 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
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.