Share via


StrongNamePublicKeyBlob 類別

定義

警告

Code Access Security is not supported or honored by the runtime.

表示強式名稱的公開金鑰資訊 (稱為 Blob)。 此類別無法獲得繼承。

public ref class StrongNamePublicKeyBlob sealed
public sealed class StrongNamePublicKeyBlob
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class StrongNamePublicKeyBlob
[System.Serializable]
public sealed class StrongNamePublicKeyBlob
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class StrongNamePublicKeyBlob
type StrongNamePublicKeyBlob = class
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type StrongNamePublicKeyBlob = class
[<System.Serializable>]
type StrongNamePublicKeyBlob = class
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StrongNamePublicKeyBlob = class
Public NotInheritable Class StrongNamePublicKeyBlob
繼承
StrongNamePublicKeyBlob
屬性

備註

警告

程式代碼存取安全性 (CAS) 在所有版本的 .NET Framework 和 .NET 中已被取代。 使用 CAS 相關 API 時,最新版本的 .NET 不會接受 CAS 批注,併產生錯誤。 開發人員應尋求替代方案來完成安全性工作。

這個類別有助於使用強名稱進行識別。

如需強名稱的完整描述,請參閱 StrongName

建構函式

StrongNamePublicKeyBlob(Byte[])
已淘汰.

使用公開金鑰 Blob 未經處理的位元組來初始化 StrongNamePublicKeyBlob 類別的新執行個體。

方法

Equals(Object)
已淘汰.

取得或設定數值,表示目前的公開金鑰 Blob 是否等於指定的公開金鑰 Blob。

GetHashCode()
已淘汰.

傳回以公開金鑰為基礎的雜湊程式碼。

GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

建立並傳回公開金鑰 Blob 的字串表示。

適用於

另請參閱