語言

ContentInfo.GetContentType 方法

定義

多載

名稱 Description
GetContentType(Byte[])

擷取編碼後的 CMS ContentInfo 訊息的外部內容類型。

GetContentType(ReadOnlySpan<Byte>)

擷取編碼後的 CMS ContentInfo 訊息的外部內容類型。

GetContentType(Byte[])

來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
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 訊息的外部內容類型。

例外狀況

encodedMessage 是 null。

encodedMessage 無法解碼為有效的 CMS ContentInfo 值。

適用於

GetContentType(ReadOnlySpan<Byte>)

來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
ContentInfo.cs
來源:
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 值。

適用於