# RpcConnection Constructor

## Overloads

| [RpcConnection(IGenericLocation, ISession)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.-ctor.htm#Qlik_Sense_JsonRpc_RpcConnection__ctor_Qlik_Sense_JsonRpc_IGenericLocation_Qlik_Sense_JsonRpc_ISession_) |  | Construct a new RpcConnection based on a Qlik Sense location object and a session specification. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.-ctor.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.-ctor.htm)

## RpcConnection(IGenericLocation, ISession)

Construct a new RpcConnection based on a Qlik Sense location object and a session specification.

### Declaration

```

          public RpcConnection(IGenericLocation location, ISession session)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IGenericLocation](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.IGenericLocation.htm) | location | The location. |
| [ISession](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.ISession.htm) | session | The session. |