ContentInfo.GetContentType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
The outer content type of the specified encoded CMS ContentInfo message.
Exceptions
encodedMessage
cannot be decoded as a valid CMS ContentInfo value.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru