Locks the IDictionary or IList properties so entries can not be added or removed.
[System.AttributeUsage(System.AttributeTargets.Field)]public class LockedAttribute : AttributeRemarks
Should be used in conjunction with EntriesAttribute or AddEntryAttribute.
Members at a glance
| Kind | Members |
|---|---|
| Constructors | LockedAttribute |
Constructors
LockedAttribute
public LockedAttribute()Locks the IDictionary or IList properties so entries can not be added or removed.
Remarks
Should be used in conjunction with EntriesAttribute or AddEntryAttribute.
IDictionary keys will be unchangeable and entries can not be added or removed.
IList entries can not be added or removed.
Will not prevent values from being modified in either case.
Has no effect on other parameter types.
Example
[Locked]public IList<float>floatList;Generated from the Sansar 47.10.0 client ScriptApi snapshot.