# Using the neoVI API in C# - neoVI API

To use the neoVI API in C# add the [`icsNeoClass.cs`](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/0f20729ed67e93491ce3dc561c785937/icsNeoClass.zip) Class into the C# project (figure 1). Right click on the solution and select “Add Existing Item” from the “Add” menu. Then, call the methods as defined in the [WIN32 API Functions and Types](https://docs.intrepidcs.com/neovi-api/win32-api-overview-intrepidcs-api) Section of this document.

![Figure 1 - Add Existing Item From the Add menu C#.NET Menu.](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-ed6f32cb8da1ae50638ddcdedfb215d878dddea4%2FCSNetAddClass.gif?alt=media)

### Example

A C# Dot Net 2010 example (Figure 1) is included to show how the API all works together. The main project files are as follows: 1) the project file: IcsApiDotNetCSharp.sln 2) the form file : Form1.cs, and 3) the neoVI module : icsNeoClass.cs. All project files are included in the following file [`CSnet2010.zip`](https://cdn.intrepidcs.net/guides/neoVIDLL/_downloads/9a99f8bde62128dff29eb5e06464e1c0/CSnet2010.zip). This project will open in Visual Studio 2010, 2012, 2013, 2015 and 2017.

The example shows how to open and close communication to the driver, send messages and read messages on the networks.

![Figure 2 - The C# Dot Net 2010 Example.](https://240838104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FabyA6gDDBQ0CNbxlveQb%2Fuploads%2Fgit-blob-2eca8b3e762c4a99656d3f5f71006581c24b2f67%2FDNETExample.gif?alt=media)


---

# 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.intrepidcs.com/neovi-api/basic-operation-intrepidcs-api/using-the-intrepidcs-api-in-c-intrepidcs-api.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.
