# SetOption

### int SetOption(string sOptionName, int nOptionVal)

라이브러리 내부의 다양한 설정 옵션들을 이름(`sOptionName`)을 통해 조회하고, 새로운 값(`nOptionVal`)으로 변경합니다. 장비 초기화 시점이나 특정 시나리오(예: 점검 모드 진입 시 로그 강화)에서 라이브러리의 특성을 동적으로 바꿀 때 사용하면 편리합니다.

Parameters

<table data-header-hidden><thead><tr><th width="246"></th><th width="158"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>sOptionName</td><td>string</td><td>변경하고자 하는 옵션의 이름 (키워드)</td></tr><tr><td>nOptionVal</td><td>int</td><td>설정하고자 하는 정수형 값</td></tr></tbody></table>

<figure><img src="/files/FXI9dsOvqsRy7QVJOHta" alt=""><figcaption></figcaption></figure>

```csharp
void SetOptionValue()
{
   int result = m_gem.SetOption("LOG_MAX_ITEM",6000);//LogMaxItem옵션을 6000으로 바로변경
   int result = m_gem.SetOption("BIGFILE_SKIP",0);//BigFile Skip을 FALSE로 변경
   if (result >= 0)
    {
        Console.WriteLine("로그 기록 옵션이 성공적으로 변경되었습니다.");
    }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://nviasoft.gitbook.io/nviasoft-docs/api-reference/undefined-6/setoption.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.
