# ConditionalInstructionCollection.ConditionalInstructionNames Property

> Gets the names of all ConditionalInstruction elements that are listed inside the collection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > ConditionalInstructionCollection.ConditionalInstructionNames Property
- **464 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/conditionalinstructionnames-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/conditionalinstructionnames-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/conditionalinstructionnames-property/llms-full.txt

---

### Description

Gets the [names](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstruction/name-property/llms-full.txt) of all [ConditionalInstruction](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstruction/llms-full.txt) elements that are listed inside the collection.

### Syntax

```csharp
public string[] ConditionalInstructionNames { get; }
```

```vbnet
Public ReadOnly Property ConditionalInstructionNames As String()
```

### Examples

The following example iterates through the conditional instruction names collection and processes each string.

```csharp
foreach (string text in conditionalInstructionCollection.ConditionalInstructionNames)
{
    Console.WriteLine(text.Length);
}
```

```vbnet
For Each text As String In conditionalInstructionCollection.ConditionalInstructionNames
    Console.WriteLine(text.Length)
Next
```

### Limitations

Read only.

### Remarks

The property returns null, if the [TextControl.IsFormFieldValidationEnabled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/isformfieldvalidationenabled-property/llms-full.txt) property is set to false.

---

## Nearby

- **Previous:** [ConditionalInstructionCollection.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/clear-method/llms-full.txt)
- **Next:** [ConditionalInstructionCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/copyto-method/llms-full.txt)
