> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/locked-attribute.md).

# Locked Attribute

### LockedAttribute Class

Locks the IDictionary or IList properties so entries can not be added or removed.

### Syntax

\[System.AttributeUsage(System.AttributeTargets.Field)]\
public class **LockedAttribute** : [Attribute](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Attribute)

### Member Details

#### LockedAttribute Constructor

> Locks the IDictionary or IList properties so entries can not be added or removed.
>
> ### Syntax
>
> public **LockedAttribute** ()
>
> ### Remarks
>
> ### Example

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><strong>C# Example</strong></td></tr><tr><td><pre><code>            [Locked]
</code></pre></td></tr></tbody></table>

```
        public IList&#x3C;float>floatList;
        
```

|

> ### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

***
