CngKey.Import Yöntem

Tanım

Anahtar malzemesini anahtar depolama sağlayıcısına (KSP) aktararak yeni bir anahtar oluşturur.

Aşırı Yüklemeler

Name Description
Import(Byte[], CngKeyBlobFormat, CngProvider)

Belirtilen anahtar malzemesini belirtilen biçimi kullanarak belirtilen anahtar depolama sağlayıcısına (KSP) aktararak yeni bir anahtar oluşturur.

Import(Byte[], CngKeyBlobFormat)

Belirtilen anahtar malzemesini varsayılan anahtar depolama sağlayıcısına (KSP) içeri aktarıp belirtilen biçimi kullanarak yeni bir anahtar oluşturur.

Import(Byte[], CngKeyBlobFormat, CngProvider)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Belirtilen anahtar malzemesini belirtilen biçimi kullanarak belirtilen anahtar depolama sağlayıcısına (KSP) aktararak yeni bir anahtar oluşturur.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format, System::Security::Cryptography::CngProvider ^ provider);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format, System.Security.Cryptography.CngProvider provider);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
[<System.Security.SecurityCritical>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat * System.Security.Cryptography.CngProvider -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat, provider As CngProvider) As CngKey

Parametreler

keyBlob
Byte[]

Anahtar bilgilerini içeren bir dizi.

format
CngKeyBlobFormat

Dizinin biçimini keyBlob belirten bir nesne.

provider
CngProvider

The KSP.

Döndürülenler

Yeni bir anahtar.

Öznitelikler

Özel durumlar

keyBlob, formatveya provider şeklindedir null.

Şifreleme Yeni Nesil (CNG) bu sistemde desteklenmiyor.

Diğer tüm hatalar.

Açıklamalar

Important

Windows 7 ve Windows Server 2008 R2 öncesi Windows işletim sistemlerinde bazı CNG anahtar ikili büyük nesne (BLOB) biçimleri desteklenmez.

Şunlara uygulanır

Import(Byte[], CngKeyBlobFormat)

Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs
Kaynak:
Cng.NotSupported.cs

Belirtilen anahtar malzemesini varsayılan anahtar depolama sağlayıcısına (KSP) içeri aktarıp belirtilen biçimi kullanarak yeni bir anahtar oluşturur.

public:
 static System::Security::Cryptography::CngKey ^ Import(cli::array <System::Byte> ^ keyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
public static System.Security.Cryptography.CngKey Import(byte[] keyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
static member Import : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.CngKey
Public Shared Function Import (keyBlob As Byte(), format As CngKeyBlobFormat) As CngKey

Parametreler

keyBlob
Byte[]

Anahtar bilgilerini içeren bir dizi.

format
CngKeyBlobFormat

Dizinin biçimini keyBlob belirten bir nesne.

Döndürülenler

Yeni bir anahtar.

Öznitelikler

Özel durumlar

keyBlob veya format şeklindedir null.

Şifreleme Yeni Nesil (CNG) bu sistemde desteklenmiyor.

Diğer tüm hatalar.

Açıklamalar

Varsayılan KSP değeridir MicrosoftSoftwareKeyStorageProvider.

Important

Windows 7 ve Windows Server 2008 R2 öncesi Windows işletim sistemlerinde bazı CNG anahtar ikili büyük nesne (BLOB) biçimleri desteklenmez.

Şunlara uygulanır