System::Net::NetworkCredential::GetCredential method

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

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

System::SharedPtr<NetworkCredential> System::Net::NetworkCredential::GetCredential(String host, int32_t port, String authenticationType) override
ParameterTypeDescription
hostStringThe host name.
portint32_tThe port number.
authenticationTypeStringThe authentication type.

See Also

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

Returns credentials for the specified URI and authentication type.

System::SharedPtr<NetworkCredential> System::Net::NetworkCredential::GetCredential(System::SharedPtr<Uri> uri, String authenticationType) override
ParameterTypeDescription
uriSystem::SharedPtr<Uri>The URI.
authenticationTypeStringThe authentication type.

See Also