# CreateUri Method

## Overloads

| [CreateUri(QTServiceType, String, Int32)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm#PIX_Services_ServiceSupport_QTServiceSupport_CreateUri_PIX_Services_ServiceSupport_QTServiceType_System_String_System_Int32_) |  |  |
| --- | --- | --- |
| [CreateUri(QTServiceType, Boolean, String)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm#PIX_Services_ServiceSupport_QTServiceSupport_CreateUri_PIX_Services_ServiceSupport_QTServiceType_System_Boolean_System_String_) |  |  |
| [CreateUri(QTServiceType, String)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm#PIX_Services_ServiceSupport_QTServiceSupport_CreateUri_PIX_Services_ServiceSupport_QTServiceType_System_String_) |  |  |
| [CreateUri(QTServiceType, String, String, Int32)](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm#PIX_Services_ServiceSupport_QTServiceSupport_CreateUri_PIX_Services_ServiceSupport_QTServiceType_System_String_System_String_System_Int32_) |  |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm)

## CreateUri(QTServiceType, String, Int32)

### Declaration

```

          public static Uri CreateUri(QTServiceType serviceType, string machineName, int port)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QTServiceType](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceType.htm) | serviceType |  |
| System.String | machineName |  |
| System.Int32 | port |  |

### Returns

| Type | Description |
| --- | --- |
| System.Uri |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm)

## CreateUri(QTServiceType, Boolean, String)

### Declaration

```

          public static Uri CreateUri(QTServiceType serviceType, bool useSSL, string machineName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QTServiceType](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceType.htm) | serviceType |  |
| System.Boolean | useSSL |  |
| System.String | machineName |  |

### Returns

| Type | Description |
| --- | --- |
| System.Uri |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm)

## CreateUri(QTServiceType, String)

### Declaration

```
public static Uri CreateUri(QTServiceType serviceType, string machineName)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QTServiceType](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceType.htm) | serviceType |  |
| System.String | machineName |  |

### Returns

| Type | Description |
| --- | --- |
| System.Uri |  |

[](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm) [](https://help.qlik.com/en-US/qlikview-developer/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceSupport.CreateUri.htm)

## CreateUri(QTServiceType, String, String, Int32)

### Declaration

```
public static Uri CreateUri(QTServiceType serviceType, string uriScheme, string machineName, int port)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [QTServiceType](https://help.qlik.com/en-US/qlikview-developer/September2026/Subsystems/QMSAPIref/Content/PIX.Services.ServiceSupport.QTServiceType.htm) | serviceType |  |
| System.String | uriScheme |  |
| System.String | machineName |  |
| System.Int32 | port |  |

### Returns

| Type | Description |
| --- | --- |
| System.Uri |  |