แก้ไข

แชร์ผ่าน


ContentInfo.GetContentType Method

Definition

Overloads

GetContentType(Byte[])

Retrieves the outer content type of an encoded CMS ContentInfo message.

GetContentType(ReadOnlySpan<Byte>)

Retrieves the outer content type of an encoded CMS ContentInfo message.

GetContentType(Byte[])

Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs

Retrieves the outer content type of an encoded CMS ContentInfo message.

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

Parameters

encodedMessage
Byte[]

An array of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type.

Returns

Oid

The outer content type of the specified encoded CMS ContentInfo message.

Exceptions

encodedMessage is null.

encodedMessage cannot be decoded as a valid CMS ContentInfo value.

Applies to

GetContentType(ReadOnlySpan<Byte>)

Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs
Source:
ContentInfo.cs

Retrieves the outer content type of an encoded CMS ContentInfo message.

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

Parameters

encodedMessage
ReadOnlySpan<Byte>

A read-only span of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type.

Returns

Oid

The outer content type of the specified encoded CMS ContentInfo message.

Exceptions

encodedMessage cannot be decoded as a valid CMS ContentInfo value.

Applies to