次の方法で共有


ContentInfo.GetContentType メソッド

定義

オーバーロード

GetContentType(Byte[])

エンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプを取得します。

GetContentType(ReadOnlySpan<Byte>)

エンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプを取得します。

GetContentType(Byte[])

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

エンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプを取得します。

public:
 static System::Security::Cryptography::Oid ^ GetContentType(cli::array <System::Byte> ^ encodedMessage);
public static System.Security.Cryptography.Oid GetContentType (byte[] encodedMessage);
static member GetContentType : byte[] -> System.Security.Cryptography.Oid
Public Shared Function GetContentType (encodedMessage As Byte()) As Oid

パラメーター

encodedMessage
Byte[]

外部コンテンツ タイプを取得する、エンコード済み CMS ContentInfo メッセージを表すバイト値の配列。

戻り値

Oid

指定したエンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプ。

例外

encodedMessagenull です。

encodedMessage は有効な CMS ContentInfo 値としてデコードできません。

適用対象

GetContentType(ReadOnlySpan<Byte>)

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

エンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプを取得します。

public:
 static System::Security::Cryptography::Oid ^ GetContentType(ReadOnlySpan<System::Byte> encodedMessage);
public static System.Security.Cryptography.Oid GetContentType (ReadOnlySpan<byte> encodedMessage);
static member GetContentType : ReadOnlySpan<byte> -> System.Security.Cryptography.Oid
Public Shared Function GetContentType (encodedMessage As ReadOnlySpan(Of Byte)) As Oid

パラメーター

encodedMessage
ReadOnlySpan<Byte>

外部コンテンツ タイプを取得する、エンコード済み CMS ContentInfo メッセージを表すバイト値の読み取り専用スパン。

戻り値

Oid

指定したエンコード済み CMS ContentInfo メッセージの外部コンテンツ タイプ。

例外

encodedMessage は有効な CMS ContentInfo 値としてデコードできません。

適用対象