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


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

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


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

## 另见

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


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

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


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

## 另见

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