GetCertContentType()

X509Certificate2::GetCertContentType(const ByteArrayPtr&) method

Gets the type of certificate contained in the specified byte array.

static X509ContentType System::Security::Cryptography::X509Certificates::X509Certificate2::GetCertContentType(const ByteArrayPtr &raw_data)

Arguments

ParameterTypeDescription
raw_dataconst ByteArrayPtr&Certificate data.

Return Value

Type of X.509 certificate.

X509Certificate2::GetCertContentType(const String&) method

Gets the type of certificate contained in the specified file.

static X509ContentType System::Security::Cryptography::X509Certificates::X509Certificate2::GetCertContentType(const String &filename)

Arguments

ParameterTypeDescription
filenameconst String&Certificate file name.

Return Value

Type of X.509 certificate.

See Also