ICredentialsByHost.GetCredential(String, Int32, String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 호스트, 포트 및 인증 프로토콜에 대한 자격 증명을 반환합니다.
public:
System::Net::NetworkCredential ^ GetCredential(System::String ^ host, int port, System::String ^ authenticationType);
public System.Net.NetworkCredential GetCredential(string host, int port, string authenticationType);
public System.Net.NetworkCredential? GetCredential(string host, int port, string authenticationType);
abstract member GetCredential : string * int * string -> System.Net.NetworkCredential
Public Function GetCredential (host As String, port As Integer, authenticationType As String) As NetworkCredential
매개 변수
- host
- String
클라이언트를 인증할 호스트 컴퓨터입니다.
- port
- Int32
클라이언트가 통신할 host
의 포트입니다.
- authenticationType
- String
인증 프로토콜입니다.
반환
지정된 호스트, 포트 및 인증 프로토콜에 대한 NetworkCredential이거나, 지정된 호스트, 포트 및 인증 프로토콜에 대해 사용할 수 있는 자격 증명이 없는 경우 null
입니다.
설명
값 authType
은 속성에 IAuthenticationModule.AuthenticationType 해당합니다.