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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| host | String | 主机名。 |
| port | int32_t | 端口号。 |
| authenticationType | String | 身份验证类型。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NetworkCredential](../)
* Class [String](../../../system/string/)
* Class [NetworkCredential](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font 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
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | 该 URI。 |
| authenticationType | String | 身份验证类型。 |

## 另见

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