## CredentialCache::GetCredential(String, int32_t, String) method


返回指定主机名、端口和身份验证类型的凭据。

```cpp
System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(String host, int32_t port, String authenticationType) override
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| host | 字符串 | 与凭据关联的主机名。 |
| port | int32_t | 端口号。 |
| authenticationType | 字符串 | 身份验证类型。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NetworkCredential](../../networkcredential/)
* Class [String](../../../system/string/)
* Class [CredentialCache](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## CredentialCache::GetCredential(System::SharedPtr\<Uri\>, String) method


返回指定 URI 前缀和身份验证类型的凭据。

```cpp
System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(System::SharedPtr<Uri> uriPrefix, String authenticationType) override
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| uriPrefix | System::SharedPtr\<Uri\> | URI 前缀。 |
| authenticationType | 字符串 | 一种身份验证类型。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NetworkCredential](../../networkcredential/)
* Class [Uri](../../../system/uri/)
* Class [String](../../../system/string/)
* Class [CredentialCache](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
