## NetworkCredential::GetCredential(String, int32_t, String) method


Returns credentials for the specified host name, port, and authentication type.

```cpp
System::SharedPtr<NetworkCredential> System::Net::NetworkCredential::GetCredential(String host, int32_t port, String authenticationType) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| host | String | The host name. |
| port | int32_t | The port number. |
| authenticationType | String | The authentication type. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NetworkCredential](../)
* Class [String](../../../system/string/)
* Class [NetworkCredential](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
## NetworkCredential::GetCredential(System::SharedPtr\<Uri\>, String) method


Returns credentials for the specified URI and authentication type.

```cpp
System::SharedPtr<NetworkCredential> System::Net::NetworkCredential::GetCredential(System::SharedPtr<Uri> uri, String authenticationType) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | The URI. |
| authenticationType | String | The authentication type. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NetworkCredential](../)
* Class [Uri](../../../system/uri/)
* Class [String](../../../system/string/)
* Class [NetworkCredential](../)
* Namespace [System::Net](../../)
* Library [Aspose.PDF for C++](../../../)
