---
title: "System::Security::Cryptography::Pkcs::SignedCms::SignedCms constructor"
url: "https://reference.aspose.com/pub/cpp/system.security.cryptography.pkcs/signedcms/signedcms/"
product: "Aspose.PUB for C++"
description: "System::Security::Cryptography::Pkcs::SignedCms::SignedCms constructor. Constructor in C++."
---

## SignedCms::SignedCms constructor


Constructor.

```cpp
System::Security::Cryptography::Pkcs::SignedCms::SignedCms(const SharedPtr<ContentInfo> &content, bool detached)
```


| Parameter | Type | Description |
| --- | --- | --- |
| content | const SharedPtr\<ContentInfo\>\& | Content to sign. |
| detached | bool | Whether signature is detached. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [ContentInfo](../../contentinfo/)
* Class [SignedCms](../)
* Namespace [System::Security::Cryptography::Pkcs](../../)
* Library [Aspose.PUB for C++](../../../)
