NegotiateStream.IsAuthenticated 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
인증이 성공했는지를 나타내는 Boolean 값을 가져옵니다.
public:
virtual property bool IsAuthenticated { bool get(); };
public override bool IsAuthenticated { get; }
member this.IsAuthenticated : bool
Public Overrides ReadOnly Property IsAuthenticated As Boolean
속성 값
인증이 성공하면 true
이고, 그렇지 않으면 false
입니다.
예제
다음 코드 예제에서는이 속성의 값을 표시 합니다.
static void DisplayAuthenticationProperties(NegotiateStream stream)
{
Console.WriteLine("IsAuthenticated: {0}", stream.IsAuthenticated);
Console.WriteLine("IsMutuallyAuthenticated: {0}", stream.IsMutuallyAuthenticated);
Console.WriteLine("IsEncrypted: {0}", stream.IsEncrypted);
Console.WriteLine("IsSigned: {0}", stream.IsSigned);
Console.WriteLine("ImpersonationLevel: {0}", stream.ImpersonationLevel);
Console.WriteLine("IsServer: {0}", stream.IsServer);
}
설명
클라이언트는 또는 BeginAuthenticateAsClient 메서드를 AuthenticateAsClient 호출하여 인증합니다. 서버는 또는 BeginAuthenticateAsServer 메서드를 호출하여 인증합니다AuthenticateAsServer.