X509SubjectKeyIdentifierClause.TryCreateFrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a key identifier clause using the specified X.509 certificate.
public:
static bool TryCreateFrom(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::X509SubjectKeyIdentifierClause ^ % keyIdentifierClause);
public static bool TryCreateFrom (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, out System.IdentityModel.Tokens.X509SubjectKeyIdentifierClause keyIdentifierClause);
static member TryCreateFrom : System.Security.Cryptography.X509Certificates.X509Certificate2 * X509SubjectKeyIdentifierClause -> bool
Public Shared Function TryCreateFrom (certificate As X509Certificate2, ByRef keyIdentifierClause As X509SubjectKeyIdentifierClause) As Boolean
Parameters
- certificate
- X509Certificate2
An X509Certificate2 to create the key identifier clause for.
- keyIdentifierClause
- X509SubjectKeyIdentifierClause
When this method returns, contains a X509SubjectKeyIdentifierClause that represents the key identifier clause. This parameter is passed uninitialized.
Returns
true
when a key identifier clause can be created for the specified X.509 certificate; otherwise, false
.
Exceptions
certificate
is null
.
Remarks
A X509SubjectKeyIdentifierClause key identifier clause can be created for the X.509 certificate when it contains a subject key identifier.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin