Add()

CredentialCache::Add(System::SharedPtr<Uri>, String, System::SharedPtr<NetworkCredential>) method

Adds the specified network credentials to the cache.

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

Arguments

ParameterTypeDescription
uriPrefixSystem::SharedPtr<Uri>The resource’s URI prefix with which the credentials are associated.
authenticationTypeStringThe authentication scheme.
credentialSystem::SharedPtr<NetworkCredential>The credentials to add.

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

Adds the specified network credentials to the cache.

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

Arguments

ParameterTypeDescription
hostStringThe host name with which the credentials are associated.
portint32_tThe port number.
authenticationTypeStringThe authentication scheme.
credentialSystem::SharedPtr<NetworkCredential>The credentials to add.

See Also