# GetFormatCheck

### int GetFormatCheck()

Format Check기능의 활성화 여부를 반환 받음.

Return Value

<table data-header-hidden><thead><tr><th width="181" 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">Format Validation 기능 OFF</td></tr><tr><td valign="top">1</td><td valign="top">Format Validation 기능 ON</td></tr></tbody></table>

```csharp
// 현재 라이브러리의 메시지 포맷 검증 설정을 확인하는 예제
public void VerifyFormatCheckStatus()
{
    // 1. GetFormatCheck 호출
    int nStatus = m_gem.GetFormatCheck();

    // 2. 결과 해석
    if (nStatus == 1)
    {
        Console.WriteLine("현재 메시지 포맷 검증(Format Validation)이 [ON] 상태입니다.");
        // 규격에 맞지 않는 데이터 수신 시 S9F7(Illegal Data) 등의 대응이 가능함
    }
    else if (nStatus == 0)
    {
        Console.WriteLine("현재 메시지 포맷 검증(Format Validation)이 [OFF] 상태입니다.");
        // 규격 위반 데이터도 유연하게 수신할 수 있으나 보안/안정성에 유의해야 함
    }
    else
    {
        Console.WriteLine($"상태 확인 실패. 에러 코드: {nStatus}");
    }
}
```


---

# 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/item-parsing/getformatcheck.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.
