# Entries Attribute

### EntriesAttribute Class

List of entries to populate IList or IDictionary properties with.

### Syntax

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

### Member Details

#### EntriesAttribute Constructor

> List of entries to populate IList or IDictionary properties with.
>
> #### Syntax
>
> public **EntriesAttribute** (**params** [object](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Object)\[] entries)
>
> **Parameters**
>
> > *entries*
>
> #### 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>            [Entries("King", "Queen", "Rook", "Bishop", "Knight", "Pawn")]
</code></pre></td></tr></tbody></table>

```
        public IDictionary&#x3C;string, ClusterResource> GamePieces;
    [Entries("&#x26;lt;1,2,3&#x26;gt;", "&#x26;lt;2.5,3.6,4.6&#x26;gt;")]        public IList&#x26;lt;Sansar.Vector&#x26;gt; GamePieces;        &#x3C;/pre>&#x3C;/td>&#x3C;/tr>&#x3C;/tbody>&#x3C;/table>
```

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

Locked Field

Locks the IDictionary or IList properties so entries can not be added or removed. Syntax **public Locked** Remarks Requirements **Namespace: Sansar.Script Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0**

|


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/entries-attribute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
