Parameter.SetLock

Introduced

v4.0

Description

Locks a parameter. The level passed to the method is used to determine which area is locked on the parameter.

C# Syntax

Parameter.SetLock( siLockLevel in_LockLevel );

Scripting Syntax

oReturn = Parameter.SetLock( [level] );

Return Value

siLockLevel

Parameters

Parameter Type Description
level siLockLevel The level to lock. The lock level is a bit field, so it can be only one level or a combinaison of many level or to have all levels, siLockLevelAll can be used.

Default Value: siLockLevelAll

Examples

JScript Example

// See the example under Parameter.IsLocked

See Also

Parameter.SetLock Parameter.UnSetLock Parameter.LockType Parameter.LockLevel Parameter.IsLocked ProjectItem.SetLock Lock Unlock