次の方法で共有


ContentInfo コンストラクター

定義

ContentInfo クラスのインスタンスを作成します。

オーバーロード

ContentInfo(Byte[])

コンストラクターは ContentInfo(Byte[]) 、データとしてバイト値の ContentInfo 配列と、コンテンツ タイプを表す既定 object identifier の (OID) を使用して、 クラスのインスタンスを作成します。

ContentInfo(Oid, Byte[])

コンストラクターは ContentInfo(Oid, Byte[]) 、指定したコンテンツ タイプとバイト値の ContentInfo 配列をデータとして使用して、 クラスのインスタンスを作成します。

ContentInfo(Byte[])

ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs

コンストラクターは ContentInfo(Byte[]) 、データとしてバイト値の ContentInfo 配列と、コンテンツ タイプを表す既定 object identifier の (OID) を使用して、 クラスのインスタンスを作成します。

public:
 ContentInfo(cli::array <System::Byte> ^ content);
public ContentInfo (byte[] content);
new System.Security.Cryptography.Pkcs.ContentInfo : byte[] -> System.Security.Cryptography.Pkcs.ContentInfo
Public Sub New (content As Byte())

パラメーター

content
Byte[]

ContentInfo オブジェクトの作成に使用するデータのバイト値配列。

例外

null 参照を有効な引数として受け付けないメソッドに null 参照が渡されました。

注釈

クラスには ContentInfo 、次の既定のプロパティ値があります。

プロパティ 既定値
ContentType 1.2.840.113549.1.7.1 (データ)

適用対象

ContentInfo(Oid, Byte[])

ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs
ソース:
ContentInfo.cs

コンストラクターは ContentInfo(Oid, Byte[]) 、指定したコンテンツ タイプとバイト値の ContentInfo 配列をデータとして使用して、 クラスのインスタンスを作成します。

public:
 ContentInfo(System::Security::Cryptography::Oid ^ contentType, cli::array <System::Byte> ^ content);
public ContentInfo (System.Security.Cryptography.Oid contentType, byte[] content);
new System.Security.Cryptography.Pkcs.ContentInfo : System.Security.Cryptography.Oid * byte[] -> System.Security.Cryptography.Pkcs.ContentInfo
Public Sub New (contentType As Oid, content As Byte())

パラメーター

contentType
Oid

Oidコンテンツのコンテンツ タイプをobject identifier指定する (OID) を含む オブジェクト。 コンテンツ タイプには、data、digestedData、encryptedData、envelopedData、hashedData、signedAndEnvelopedData、signedData のいずれかを指定します。 詳細については、「解説」を参照してください。

content
Byte[]

ContentInfo オブジェクトの作成に使用するデータのバイト値配列。

例外

null 参照を有効な引数として受け付けないメソッドに null 参照が渡されました。

注釈

CMS/PKCS #7 標準ドキュメントに記載されている digestedData コンテンツ タイプと encryptedData コンテンツ タイプは、この実装で生成できるコンテンツ タイプではありません。 ただし、これらのコンテンツ タイプは、このコンストラクターに渡すことができます。

コンテンツ タイプ パラメーターをビルドするには、コンストラクターの引数として次の ContentInfo(Oid, Byte[]) OID 文字列を contentType 使用します。

contentType コンテンツ タイプ OID 文字列
data 1.2.840.113549.1.7.1
digestedData 1.2.840.113549.1.7.5
encryptedData 1.2.840.113549.1.7.6
envelopedData 1.2.840.113549.1.7.3
hashedData 1.2.840.113549.1.7.5
signedAndEnvelopedData 1.2.840.113549.1.7.4
signedData 1.2.840.113549.1.7.2

適用対象