ContentInfo 類別

定義

ContentInfo 類別表示 CMS/PKCS #7 標準文件中所定義的 CMS/PKCS #7 ContentInfo 資料結構。 此資料結構為所有 CMS/PKCS #7 訊息的基礎。

public ref class ContentInfo sealed
public sealed class ContentInfo
type ContentInfo = class
Public NotInheritable Class ContentInfo
繼承
ContentInfo

建構函式

ContentInfo(Byte[])

ContentInfo(Byte[]) 建構函式使用位元組值陣列做為資料,以及表示內容類型的預設 object identifier (OID),建立 ContentInfo 類別的執行個體。

ContentInfo(Oid, Byte[])

ContentInfo(Oid, Byte[]) 建構函式使用指定的內容類型和位元組值陣列作為資料,建立 ContentInfo 類別的執行個體。

屬性

Content

Content 屬性,會擷取 CMS/PKCS #7 訊息的內容。

ContentType

ContentType 屬性,會擷取 Oid 物件,該物件包含 CMS/PKCS #7 訊息中內部內容之內容類型的 object identifier (OID)。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

釋出 Unmanaged 資源並執行其他清除作業後,記憶體回收才能重新回收 ContentInfo 執行個體。

GetContentType(Byte[])

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

GetContentType(ReadOnlySpan<Byte>)

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

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於