# GetBaseBNFHashAsync Method

## Overloads

| [GetBaseBNFHashAsync(BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm#Qlik_Engine_Hub_GetBaseBNFHashAsync_Qlik_Engine_BNFType_) |  | Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed. |
| --- | --- | --- |
| [GetBaseBNFHashAsync(AsyncHandle, BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm#Qlik_Engine_Hub_GetBaseBNFHashAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_BNFType_) |  | Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed. |
| [GetBaseBNFHashAsync<T>(AsyncHandle, Func<Response, T>, BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm#Qlik_Engine_Hub_GetBaseBNFHashAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_BNFType_) |  | Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm)

## GetBaseBNFHashAsync(BNFType)

Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed.

### Declaration

```

          public Task<string> GetBaseBNFHashAsync([QixName("qBnfType")] BNFType bnfType)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [BNFType](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.BNFType.htm) | bnfType | The type of grammar to return:<br><br><ul> <li>The script statements and the script functions if <code>qBnfType</code> is set to S.</li> <li>The chart functions if <code>qBnfType</code> is set to E.</li> </ul> |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.String&gt; |  |

### Implements

[IHub.GetBaseBNFHashAsync(BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.GetBaseBNFHashAsync.htm#Qlik_Engine_IHub_GetBaseBNFHashAsync_Qlik_Engine_BNFType_)

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm)

## GetBaseBNFHashAsync(AsyncHandle, BNFType)

Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed.

### Declaration

```

          public Task<string> GetBaseBNFHashAsync(AsyncHandle asyncHandle, [QixName("qBnfType")] BNFType bnfType)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| [BNFType](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.BNFType.htm) | bnfType | The type of grammar to return:<br><br><ul> <li>The script statements and the script functions if <code>qBnfType</code> is set to S.</li> <li>The chart functions if <code>qBnfType</code> is set to E.</li> </ul> |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.String&gt; |  |

### Implements

[IHub.GetBaseBNFHashAsync(AsyncHandle, BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.GetBaseBNFHashAsync.htm#Qlik_Engine_IHub_GetBaseBNFHashAsync_Qlik_Engine_AsyncHandle_Qlik_Engine_BNFType_)

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.GetBaseBNFHashAsync.htm)

## GetBaseBNFHashAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;, BNFType)

Gets a string hash calculated from the current Backus-Naur Form (BNF) grammar of the Qlik engine scripting language. If the hash changes between subsequent calls to this method, this indicates that the BNF grammar has changed.

### Declaration

```
public Task<T> GetBaseBNFHashAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qBnfType")] BNFType bnfType)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |
| [BNFType](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.BNFType.htm) | bnfType | The type of grammar to return:<br><br><ul> <li>The script statements and the script functions if <code>qBnfType</code> is set to S.</li> <li>The chart functions if <code>qBnfType</code> is set to E.</li> </ul> |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

### Implements

[IHub.GetBaseBNFHashAsync<T>(AsyncHandle, Func<Response, T>, BNFType)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.GetBaseBNFHashAsync.htm#Qlik_Engine_IHub_GetBaseBNFHashAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__Qlik_Engine_BNFType_)