GetNameInfo()

X509Certificate2::GetNameInfo(X509NameType, bool) const method

Gets subject or issuer name from certificate.

String System::Security::Cryptography::X509Certificates::X509Certificate2::GetNameInfo(X509NameType name_type, bool for_issuer) const

Arguments

ParameterTypeDescription
name_typeX509NameTypeName formatting options.
for_issuerboolIf true, returns issuer name, else returns subject name.

Return Value

Formatted issuer or subject name.

See Also