# QcsLocation Class

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

Class for defining and configuring Qlik Cloud Services connections.

## Inheritance

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

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

## Syntax

```
public class QcsLocation : GenericLocation, IQcsLocation, IGenericLocation
```

## Properties

| Name | Description |
| --- | --- |
| [SessionInfo](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.SessionInfo.htm#Qlik_Sense_JsonRpc_QcsLocation_SessionInfo) | Returns the session information associated with the current connection. |

## Methods

| Name | Description |
| --- | --- |
| [AsApiKey(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.AsApiKey.htm#Qlik_Sense_JsonRpc_QcsLocation_AsApiKey_System_String_) | Configure the location to use an API key for authentication. |
| [AsExistingSession(JObject)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.AsExistingSession.htm#Qlik_Sense_JsonRpc_QcsLocation_AsExistingSession_Newtonsoft_Json_Linq_JObject_) | Configure the location to use an already existing session. |
| [AsExistingSession(QcsSessionInfo)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.AsExistingSession.htm#Qlik_Sense_JsonRpc_QcsLocation_AsExistingSession_Qlik_Sense_JsonRpc_QcsSessionInfo_) | Configure the location to use an already existing session. |
| [AsExistingSession(String, String, String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.AsExistingSession.htm#Qlik_Sense_JsonRpc_QcsLocation_AsExistingSession_System_String_System_String_System_String_) | Configure the location to use an already existing session. |
| [AsJwt(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.AsJwt.htm#Qlik_Sense_JsonRpc_QcsLocation_AsJwt_System_String_) | Configure the location to use a JSON Web Token for authentication. |
| [FromUri(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.FromUri.htm#Qlik_Sense_JsonRpc_QcsLocation_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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.FromUri.htm#Qlik_Sense_JsonRpc_QcsLocation_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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.QcsLocation.GetWebsocketUri.htm#Qlik_Sense_JsonRpc_QcsLocation_GetWebsocketUri_Qlik_Sense_JsonRpc_ISession_System_String_) | Returns the full Uri used when performing a websocket connection. |