Partager via


X509SecurityToken Constructor (X509Certificate2)

Creates a new instance of the X509SecurityToken class with the specified certificate.

Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim certificate As X509Certificate2
Dim x509SecurityToken1 As New X509SecurityToken(certificate)

Syntax

'Declaration
Public Sub New( _
    ByVal certificate As X509Certificate2 _
)
public X509SecurityToken(
    X509Certificate2 certificate
);
public:
X509SecurityToken(
    X509Certificate2^ certificate
);
public X509SecurityToken(
    X509Certificate2 certificate
);
public function X509SecurityToken(
     certificate : X509Certificate2
);

Parameters

  • certificate
    An System.Security.Cryptography.X509Certificates.X509Certificate2 that contains the X.509 certificate.

Exceptions

Exception type Condition
ArgumentNullException

certificate is null.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

X509SecurityToken Class
X509SecurityToken Members
Microsoft.Web.Services3.Security.Tokens Namespace