StrongName Sınıf

Tanım

Dikkat

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

İlke değerlendirmesi için kanıt olarak bir kod derlemesinin tanımlayıcı adını sağlar. Bu sınıf devralınamaz.

public ref class StrongName sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public ref class StrongName sealed : System::Security::Policy::IIdentityPermissionFactory
[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 StrongName : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
public sealed class StrongName : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class StrongName : System.Security.Policy.IIdentityPermissionFactory
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class StrongName : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
public sealed class StrongName : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type StrongName = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
[<System.Serializable>]
type StrongName = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StrongName = class
    interface IIdentityPermissionFactory
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StrongName = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
type StrongName = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class StrongName
Inherits EvidenceBase
Implements IIdentityPermissionFactory
Public NotInheritable Class StrongName
Implements IIdentityPermissionFactory
Devralma
StrongName
Devralma
StrongName
Öznitelikler
Uygulamalar

Açıklamalar

Caution

Kod Erişim Güvenliği (CAS), .NET Framework ve .NET'in tüm sürümlerinde kullanım dışı bırakılmıştır. .NET'in son sürümleri CAS ek açıklamalarını dikkate almaz ve CAS ile ilgili API'ler kullanılırsa hata üretir. Geliştiriciler, güvenlik görevlerini yerine getirmek için alternatif yöntemler aramalıdır.

sınıfı, StrongName kod derlemesinin benzersiz, kriptografik olarak güçlü bir adının kanıtını temsil eder. Tanımlayıcı ad bir ortak anahtar, belirli bir ad ve bir sürümden oluşur. Ortak anahtar, yayımcının gizli tutulan özel anahtarına karşılık gelir ve tanımlayıcı adın geçerli olması için derlemenin imzalanması gerekir.

Tanımlayıcı adlar genellikle kullanılarak veya AssemblyKeyFileAttribute SN yardımcı programıyla birlikte derlemelere AssemblyKeyNameAttributeAssemblyDelaySignAttribute atanır (bkz. Sn.exe (Tanımlayıcı Ad Aracı)).

StrongNameIdentityPermission çağıran kodun belirli bir tanımlayıcı adlandırılmış kod derlemesinde olduğunu onaylamak için bu sınıfı kullanır.

Oluşturucular

Name Description
StrongName(StrongNamePublicKeyBlob, String, Version)
Geçersiz.

Sınıfın StrongName yeni bir örneğini tanımlayıcı ad ortak anahtar blobu, adı ve sürümüyle başlatır.

Özellikler

Name Description
Name
Geçersiz.

Geçerli StrongNameöğesinin basit adını alır.

PublicKey
Geçersiz.

StrongNamePublicKeyBlob Geçerli StrongNameöğesinin öğesini alır.

Version
Geçersiz.

Version Geçerli StrongNameöğesinin öğesini alır.

Yöntemler

Name Description
Clone()
Geçersiz.

Geçerli örneğin kopyası olan yeni bir nesne oluşturur.

Clone()
Geçersiz.

Geçerli örneğin tam kopyası olan yeni bir nesne oluşturur.

(Devralındığı yer: EvidenceBase)
Copy()
Geçersiz.

Geçerli StrongNameöğesinin eşdeğer bir kopyasını oluşturur.

CreateIdentityPermission(Evidence)
Geçersiz.

Geçerli StrongNameIdentityPermissionöğesine karşılık gelen bir StrongName oluşturur.

Equals(Object)
Geçersiz.

Belirtilen tanımlayıcı adın geçerli tanımlayıcı ada eşit olup olmadığını belirler.

GetHashCode()
Geçersiz.

Geçerli StrongNameöğesinin karma kodunu alır.

GetType()
Geçersiz.

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
MemberwiseClone()
Geçersiz.

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()
Geçersiz.

Geçerli StrongNameöğesinin dize gösterimini oluşturur.

Şunlara uygulanır