System::Net::CredentialCache::GetCredential 方法

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

返回指定主机名、端口和身份验证类型的凭据。

System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(String host, int32_t port, String authenticationType) override
参数类型描述
hostString与凭据关联的主机名。
portint32_t端口号。
authenticationTypeString身份验证类型。

另见

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

返回指定 URI 前缀和身份验证类型的凭据。

System::SharedPtr<NetworkCredential> System::Net::CredentialCache::GetCredential(System::SharedPtr<Uri> uriPrefix, String authenticationType) override
参数类型描述
uriPrefixSystem::SharedPtr<Uri>URI 前缀。
authenticationTypeString身份验证类型。

另见