## X509Certificate2::GetCertContentType(const ByteArrayPtr\&) method


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

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


| Parameter | Type | Description |
| --- | --- | --- |
| raw_data | const ByteArrayPtr\& | Certificate data. |

### ReturnValue

Type of X.509 certificate.

## See Also

* Enum [X509ContentType](../../x509contenttype/)
* Typedef [ByteArrayPtr](../../../system/bytearrayptr/)
* Class [X509Certificate2](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.Font for C++](../../../)
## X509Certificate2::GetCertContentType(const String\&) method


Gets the type of certificate contained in the specified file.

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


| Parameter | Type | Description |
| --- | --- | --- |
| filename | const String\& | Certificate file name. |

### ReturnValue

Type of X.509 certificate.

## See Also

* Enum [X509ContentType](../../x509contenttype/)
* Class [String](../../../system/string/)
* Class [X509Certificate2](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.Font for C++](../../../)
