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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기