Share via


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

屬性 ContentTypeOid 擷取物件,其中包含 object identifier CMS/PKCS #7訊息內部內容的內容類型 (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)

適用於