# Location Class

Namespace: [Qlik.Sense.JsonRpc](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.htm)  
Assembly: Qlik.Sense.JsonRpc.dll

Handles the location of the Qlik Sense instance

## Inheritance

* System.Object
  * [GenericLocation](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.GenericLocation.htm)
    * Location

      [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.htm)
      #### Derived Classes
      * [Location](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Location.htm)

## Syntax

```
public class Location : GenericLocation, ILocation, IGenericLocation, IDisposable
```

## Properties

| Name | Description |
| --- | --- |
| [CertificateValidation](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.CertificateValidation.htm#Qlik_Sense_JsonRpc_Location_CertificateValidation) | Indicates if invalid certificates should be ignored. |
| [VirtualProxyPath](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.VirtualProxyPath.htm#Qlik_Sense_JsonRpc_Location_VirtualProxyPath) | Virtual path to the proxy. |

## Methods

| Name | Description |
| --- | --- |
| [AsAnonymousUserViaProxy(Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsAnonymousUserViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsAnonymousUserViaProxy_System_Boolean_) | Defining the location as a connection to Qlik Sense as an anonymous user. |
| [AsDirectConnection(String, String, X509Certificate2Collection, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsDirectConnection.htm#Qlik_Sense_JsonRpc_Location_AsDirectConnection_System_String_System_String_System_Security_Cryptography_X509Certificates_X509Certificate2Collection_System_Boolean_) | Defining the location as a direct connection to Qlik Sense using a specific user.<br>Connection will be made to port 4747 unless port is explicitly stated in location URI. |
| [AsDirectConnection(String, String, X509Certificate2Collection, Int32, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsDirectConnection.htm#Qlik_Sense_JsonRpc_Location_AsDirectConnection_System_String_System_String_System_Security_Cryptography_X509Certificates_X509Certificate2Collection_System_Int32_System_Boolean_) | Defining the location as a direct connection to Qlik Sense using a specific user. |
| [AsDirectConnectionToPersonalEdition()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsDirectConnectionToPersonalEdition.htm#Qlik_Sense_JsonRpc_Location_AsDirectConnectionToPersonalEdition) | Defining the location as a direct connection to Qlik Sense Personal.<br>Connection will be made to port 4848 unless port is explicitly stated in location URI. |
| [AsDirectConnectionToPersonalEdition(Int32)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsDirectConnectionToPersonalEdition.htm#Qlik_Sense_JsonRpc_Location_AsDirectConnectionToPersonalEdition_System_Int32_) | Defining the location as a direct connection to Qlik Sense Personal. |
| [AsExistingSessionViaProxy(String, String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsExistingSessionViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsExistingSessionViaProxy_System_String_System_String_System_Boolean_) | Defining the location as a connection to Qlik Sense using an existing session. |
| [AsJwtViaProxy(String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsJwtViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsJwtViaProxy_System_String_System_Boolean_) | Defining the location as a connection to Qlik Sense using JWT Authentication. |
| [AsNtlmUserViaProxy(NetworkCredential, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsNtlmUserViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsNtlmUserViaProxy_System_Net_NetworkCredential_System_Boolean_) | Defining the location as a connection to Qlik Sense using NTLM Authentication. |
| [AsStaticHeaderUserViaProxy(String, String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsStaticHeaderUserViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsStaticHeaderUserViaProxy_System_String_System_String_System_Boolean_) | Defining the location as a static header connection to Qlik Sense using a specific user. |
| [AsTicketViaProxy(String, Boolean)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.AsTicketViaProxy.htm#Qlik_Sense_JsonRpc_Location_AsTicketViaProxy_System_String_System_Boolean_) | Authenticate using an ticket retrieved from a Qlik Proxy Service (QPS). |
| [Dispose()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.Dispose.htm#Qlik_Sense_JsonRpc_Location_Dispose) | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
| [FromUri(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.FromUri.htm#Qlik_Sense_JsonRpc_Location_FromUri_System_String_) | Gets a reference to a remote Qlik Sense instance at a specific Uri |
| [FromUri(Uri)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.FromUri.htm#Qlik_Sense_JsonRpc_Location_FromUri_System_Uri_) | Gets a reference to a Qlik Sense instance at a specific Uri |
| [GetWebsocketUri(ISession, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.Location.GetWebsocketUri.htm#Qlik_Sense_JsonRpc_Location_GetWebsocketUri_Qlik_Sense_JsonRpc_ISession_System_String_) | Returns the full Uri used when performing a websocket connection. |