## CredentialCache::Add(String, int32_t, String, System::SharedPtr\<NetworkCredential\>) method


Aggiunge le credenziali di rete specificate alla cache.

```cpp
void System::Net::CredentialCache::Add(String host, int32_t port, String authenticationType, System::SharedPtr<NetworkCredential> credential)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| host | String | Il nome host a cui sono associate le credenziali. |
| porta | int32_t | Il numero di porta. |
| authenticationType | String | Lo schema di autenticazione. |
| credenziale | System::SharedPtr\<NetworkCredential\> | Le credenziali da aggiungere. |

## Vedi anche

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


Aggiunge le credenziali di rete specificate alla cache.

```cpp
void System::Net::CredentialCache::Add(System::SharedPtr<Uri> uriPrefix, String authenticationType, System::SharedPtr<NetworkCredential> credential)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| uriPrefix | System::SharedPtr\<Uri\> | Il prefisso URI della risorsa a cui sono associate le credenziali. |
| authenticationType | String | Lo schema di autenticazione. |
| credenziale | System::SharedPtr\<NetworkCredential\> | Le credenziali da aggiungere. |

## Vedi anche

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