System::Net::CredentialCache::Add 方法
CredentialCache::Add(String, int32_t, String, System::SharedPtr<NetworkCredential>) method
将指定的网络凭据添加到缓存中。
void System::Net::CredentialCache::Add(String host, int32_t port, String authenticationType, System::SharedPtr<NetworkCredential> credential)
| 参数 | 类型 | 描述 |
|---|---|---|
| host | String | 与凭据关联的主机名。 |
| port | int32_t | 端口号。 |
| authenticationType | String | 身份验证方案。 |
| credential | System::SharedPtr<NetworkCredential> | 要添加的凭据。 |
另见
- Class String
- Typedef SharedPtr
- Class NetworkCredential
- Class CredentialCache
- Namespace System::Net
- Library Aspose.Font for C++
CredentialCache::Add(System::SharedPtr<Uri>, String, System::SharedPtr<NetworkCredential>) method
将指定的网络凭据添加到缓存中。
void System::Net::CredentialCache::Add(System::SharedPtr<Uri> uriPrefix, String authenticationType, System::SharedPtr<NetworkCredential> credential)
| 参数 | 类型 | 描述 |
|---|---|---|
| uriPrefix | System::SharedPtr<Uri> | 与凭据关联的资源 URI 前缀。 |
| authenticationType | String | 身份验证方案。 |
| credential | System::SharedPtr<NetworkCredential> | 要添加的凭据。 |
另见
- Typedef SharedPtr
- Class Uri
- Class String
- Class NetworkCredential
- Class CredentialCache
- Namespace System::Net
- Library Aspose.Font for C++