
## GetByName {#getbyname}

Searches for a View with the name, and returns the first occurrence within the collection.

**Returns:** The first View in collection with the specified name, if found; otherwise, null.

```cpp
GetByName(const System::String & viewName)
```

| Parameter | Description |
| --- | --- |
| viewName | Name of the View to search. |

