X509SecurityToken.Certificate Property
Gets or sets an X.509 certificate contained in the current security token.
Namespace: Microsoft.Web.Services3.Security.Tokens
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Dim x509SecurityToken1 As X509SecurityToken
Dim returnValue As X509Certificate2
returnValue = x509SecurityToken1.Certificate
Dim sampleValue As X509Certificate2
x509SecurityToken1.Certificate = sampleValue
Syntax
'Declaration
Public Property Certificate() As X509Certificate2
public X509Certificate2 Certificate {get; set;}
public:
property X509Certificate2^ Certificate {
X509Certificate2^ get();
void set(X509Certificate2^ value);
}
public X509Certificate2 get_Certificate();
public void set_Certificate(X509Certificate2);
public function get Certificate() : X509Certificate2;
public function set Certificate(X509Certificate2);
Property Value
An System.Security.Cryptography.X509Certificates.X509Certificate2 that represents the X.509 certificate.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | Certificate is set to null. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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