# GetMaxSpoolCount

### int GetMaxSpoolCount()

현재 설정된 Max Spool Count 값을 반환 받음.

SetMaxSpoolCount 함수를 이용하여 설정한 값을 반환해 줍니다.

통신 단절 시 장비의 이벤트를 임시로 저장하는 스풀(Spool) 기능에서, 한 번에 최대 몇 개의 메시지까지 보관하도록 설정되어 있는지 그 상한선을 반환해 줍니다.

Return Value

<table data-header-hidden><thead><tr><th width="170" valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Value</td><td valign="top">Description</td></tr><tr><td valign="top">>=0</td><td valign="top">현재 설정된 Max Spool Count</td></tr></tbody></table>

```csharp
// 파라미터 없이 호출하며, 설정된 개수를 반환받습니다.
    int nMaxSpool = m_gem.GetMaxSpoolCount();

    if (nMaxSpool >= 0)
    {
        Console.WriteLine($"현재 설정된 최대 스풀 저장 개수: {nMaxSpool}");
    }
    else
    {
        Console.WriteLine($"Max Spool Count 조회 실패. 에러 코드: {nMaxSpool}");
    }
```


---

# 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/spool/getmaxspoolcount.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.
