System::Net::CredentialCache::GetCredential method

CredentialCache::GetCredential(String, int32_t, String) method

Returns credentials for the specified host name, port, and authentication type.

System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(String host, int32_t port, String authenticationType) override
ParameterTypeDescription
hostStringThe host name with which the credentials are associated.
portint32_tThe port number.
authenticationTypeStringThe authentication type.

See Also

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

Returns credentials for the specified URI prefix and authentication type.

System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(System::SharedPtr<Uri> uriPrefix, String authenticationType) override
ParameterTypeDescription
uriPrefixSystem::SharedPtr<Uri>The URI prefix.
authenticationTypeStringAn authentication type.

See Also