HttpListenerRequest.EndGetClientCertificate Method

Note: This method is new in the .NET Framework version 2.0.

Ends an asynchronous request for the client's X.509 v.3 certificate.

Namespace: System.Net
Assembly: System (in system.dll)

public X509Certificate2 EndGetClientCertificate (
	IAsyncResult asyncResult
public X509Certificate2 EndGetClientCertificate (
	IAsyncResult asyncResult
public function EndGetClientCertificate (
	asyncResult : IAsyncResult
) : X509Certificate2



The pending request for the certificate.

Return Value

The IAsyncResult object that is returned when the operation started.

Exception typeCondition


asyncResult is a null reference (Nothing in Visual Basic).


asyncResult was not obtained by calling BeginGetClientCertificatee.


This method was already called for the operation identified by asyncResult.

Windows 98, Windows Server 2003, Windows XP Media Center Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0