Export (0) Print
Expand All

HttpListenerRequest.GetClientCertificate Method

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

Retrieves the client's X.509 v.3 certificate.

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

'Declaration
Public Function GetClientCertificate As X509Certificate2
'Usage
Dim instance As HttpListenerRequest
Dim returnValue As X509Certificate2

returnValue = instance.GetClientCertificate
public X509Certificate2 GetClientCertificate ()
public function GetClientCertificate () : X509Certificate2

Return Value

A System.Security.Cryptography.X509Certificates object that contains the client's X.509 v.3 certificate.

Exception typeCondition

InvalidOperationException

A call to this method to retrieve the client's X.509 v.3 certificate is in progress and therefore another call to this method cannot be made.

This method blocks until the certificate is retrieved.

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

Community Additions

ADD
Show:
© 2014 Microsoft